Made it so that normal and after tests don't run if before tests failed.
This commit is contained in:
parent
da36b304f8
commit
6f3d45b107
|
@ -154,8 +154,11 @@ int testingMain(void)
|
|||
|
||||
anyFailed = 0;
|
||||
testsetRun(&testsBefore, &anyFailed);
|
||||
testsetRun(&tests, &anyFailed);
|
||||
testsetRun(&testsAfter, &anyFailed);
|
||||
// TODO print a warning that we skip the next stages if a prior stage failed?
|
||||
if (!anyFailed)
|
||||
testsetRun(&tests, &anyFailed);
|
||||
if (!anyFailed)
|
||||
testsetRun(&testsAfter, &anyFailed);
|
||||
if (anyFailed) {
|
||||
printf("FAIL\n");
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue