mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 06:20:13 +00:00
[vm/fuzzer] Count re-runs
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>
This commit is contained in:
parent
d964c50cff
commit
c6a6add465
1 changed files with 6 additions and 2 deletions
|
@ -321,6 +321,7 @@ class DartFuzzTest {
|
|||
numTests = 0;
|
||||
numSuccess = 0;
|
||||
numNotRun = 0;
|
||||
numReRun = 0;
|
||||
numTimeOut = 0;
|
||||
numDivergences = 0;
|
||||
}
|
||||
|
@ -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() {
|
||||
|
@ -374,6 +376,7 @@ class DartFuzzTest {
|
|||
result2 = runner2.run();
|
||||
if (checkDivergence(result1, result2) == ReportStatus.no_divergence) {
|
||||
print("\nNo error on re-run\n");
|
||||
numReRun++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -484,6 +487,7 @@ class DartFuzzTest {
|
|||
int numTests;
|
||||
int numSuccess;
|
||||
int numNotRun;
|
||||
int numReRun;
|
||||
int numTimeOut;
|
||||
int numDivergences;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue