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;
|
anyFailed = 0;
|
||||||
testsetRun(&testsBefore, &anyFailed);
|
testsetRun(&testsBefore, &anyFailed);
|
||||||
testsetRun(&tests, &anyFailed);
|
// TODO print a warning that we skip the next stages if a prior stage failed?
|
||||||
testsetRun(&testsAfter, &anyFailed);
|
if (!anyFailed)
|
||||||
|
testsetRun(&tests, &anyFailed);
|
||||||
|
if (!anyFailed)
|
||||||
|
testsetRun(&testsAfter, &anyFailed);
|
||||||
if (anyFailed) {
|
if (anyFailed) {
|
||||||
printf("FAIL\n");
|
printf("FAIL\n");
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue