Skip to content

Commit 7b17073

Browse files
committed
tests: Restore live output of java_fuzz_target_test
This broke in 55eb18b.
1 parent b121327 commit 7b17073

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bazel/tools/java/com/code_intelligence/jazzer/tools/FuzzTargetTestWrapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ private static boolean verifyFuzzerOutput(
234234
throws IOException {
235235
List<String> lines;
236236
try (BufferedReader reader = new BufferedReader(new InputStreamReader(fuzzerOutput))) {
237-
lines = reader.lines().collect(toList());
237+
// Print the lines as they are read to get live updates on the console.
238+
lines = reader.lines().peek(System.err::println).collect(toList());
238239
}
239240

240241
List<String> warningsAndErrors =
@@ -263,7 +264,6 @@ private static boolean verifyFuzzerOutput(
263264

264265
List<String> stackTrace =
265266
lines.stream()
266-
.peek(System.err::println)
267267
.filter(
268268
line ->
269269
line.startsWith(EXCEPTION_PREFIX)

0 commit comments

Comments
 (0)