fix so count of failed tests is correct
This commit is contained in:
parent
80e285a3bc
commit
ca400bc2a0
@ -860,8 +860,9 @@ static int DeepState_Run(void) {
|
||||
} else {
|
||||
DeepState_Begin(test);
|
||||
}
|
||||
|
||||
num_failed_tests += DeepState_ForkAndRunTest(test);
|
||||
if (DeepState_ForkAndRunTest(test) != 0) {
|
||||
num_failed_tests++;
|
||||
}
|
||||
}
|
||||
|
||||
if (use_drfuzz) {
|
||||
|
||||
@ -701,7 +701,9 @@ int DeepState_Fuzz(void){
|
||||
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, i/diff, num_failed_tests);
|
||||
last_status = diff;
|
||||
}
|
||||
num_failed_tests += DeepState_FuzzOneTestCase(test);
|
||||
if (DeepState_FuzzOneTestCase(test) != 0) {
|
||||
num_failed_tests ++;
|
||||
}
|
||||
|
||||
current = (long)time(NULL);
|
||||
diff = current-start;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user