Skip to content

Commit

Permalink
[vm/fuzzer] Count re-runs
Browse files Browse the repository at this point in the history
Change-Id: Ia12c0eec966e93aec5210372dd294837cfc100ce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115841
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Felicitas Hetzelt <felih@google.com>
  • Loading branch information
feli-citas authored and commit-bot@chromium.org committed Sep 6, 2019
1 parent d964c50 commit c6a6add
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions runtime/tools/dartfuzz/dartfuzz_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ class DartFuzzTest {
numTests = 0;
numSuccess = 0;
numNotRun = 0;
numReRun = 0;
numTimeOut = 0;
numDivergences = 0;
}
Expand Down Expand Up @@ -354,8 +355,9 @@ class DartFuzzTest {
}

void showStatistics() {
stdout.write('\rTests: $numTests Success: $numSuccess Not-Run: '
'$numNotRun: Time-Out: $numTimeOut Divergences: $numDivergences');
stdout.write('\rTests: $numTests Success: $numSuccess (Re-Run: $numReRun) '
'Not-Run: $numNotRun Re-Run: $numReRun Time-Out: $numTimeOut '
'Divergences: $numDivergences');
}

void generateTest() {
Expand All @@ -374,6 +376,7 @@ class DartFuzzTest {
result2 = runner2.run();
if (checkDivergence(result1, result2) == ReportStatus.no_divergence) {
print("\nNo error on re-run\n");
numReRun++;
}
}
}
Expand Down Expand Up @@ -484,6 +487,7 @@ class DartFuzzTest {
int numTests;
int numSuccess;
int numNotRun;
int numReRun;
int numTimeOut;
int numDivergences;
}
Expand Down

0 comments on commit c6a6add

Please sign in to comment.