Don't print results if no tests!

This commit is contained in:
Andrew Johnson
2006-06-16 19:27:36 +00:00
parent 82513dfcc6
commit b2012ebf80

View File

@@ -127,13 +127,15 @@ int testDone(void) {
status = 2;
}
printf("\n Results\n =======\n Tests: %d\n", tests);
testResult("Passed", passed);
if (bonus) testResult("Todo Passes", bonus);
if (failed) {
testResult("Failed", failed);
status = 1;
if (tests) {
testResult("Passed", passed);
if (bonus) testResult("Todo Passes", bonus);
if (failed) {
testResult("Failed", failed);
status = 1;
}
if (skipped) testResult("Skipped", skipped);
}
if (skipped) testResult("Skipped", skipped);
}
epicsMutexUnlock(testLock);
return (status);