Skip to content

Commit

Permalink
[vm/fuzzer] Fix reproduction output
Browse files Browse the repository at this point in the history
Rationale:
Add space between fp and seed parameter. Check whether generate variable
is set in TestRunnerKBC.
Change-Id: I3f1b21b65e75286d2ca560d9fa8c05ed3e4e5f55
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116542
Reviewed-by: Aart Bik <ajcbik@google.com>
Commit-Queue: Felicitas Hetzelt <felih@google.com>
  • Loading branch information
feli-citas authored and commit-bot@chromium.org committed Sep 10, 2019
1 parent c11ca7d commit 2b966a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions runtime/tools/dartfuzz/dartfuzz_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,10 @@ class TestRunnerKBC implements TestRunner {
}

void printReproductionCommand() {
print(
[generate, '--gen-bytecode', platform, '-o', dill, fileName].join(" "));
if (generate != null) {
print([generate, '--gen-bytecode', platform, '-o', dill, fileName]
.join(" "));
}
print(cmd.join(" "));
}

Expand Down Expand Up @@ -485,7 +487,7 @@ class DartFuzzTest {

void showReproduce() {
print("\n-- BEGIN REPRODUCE --\n");
print("dartfuzz.dart --${ffi ? "" : "no-"}ffi --${fp ? "" : "no-"}fp"
print("dartfuzz.dart --${ffi ? "" : "no-"}ffi --${fp ? "" : "no-"}fp "
"--seed ${seed} $fileName");
print("\n-- RUN 1 --\n");
runner1.printReproductionCommand();
Expand Down

0 comments on commit 2b966a9

Please sign in to comment.