Changed prototype of criterion_run_all_tests

This commit is contained in:
Snaipe 2015-03-17 00:22:06 +01:00
parent a8cd9fca5e
commit f075bb111b
2 changed files with 3 additions and 3 deletions

View file

@ -44,5 +44,5 @@ int main(int argc, char *argv[]) {
}
}
return criterion_run_all_tests();
return !criterion_run_all_tests();
}

View file

@ -152,7 +152,7 @@ static int criterion_run_all_tests_impl(void) {
return -1;
report(POST_ALL, stats);
return stats->tests_failed > 0;
return stats->tests_failed == 0;
}
int criterion_run_all_tests(void) {
@ -160,5 +160,5 @@ int criterion_run_all_tests(void) {
if (res == -1) // if this is the test worker terminating
_exit(0);
return !criterion_options.always_succeed && res;
return criterion_options.always_succeed || res;
}