Test case fails if it doesn't contain any asserts.
This commit is contained in:
parent
1b21c6547d
commit
1819321f75
2 changed files with 12 additions and 4 deletions
|
@ -52,7 +52,7 @@ ScanForTestSuites() {
|
|||
#if defined(linux) || defined( __linux)
|
||||
char *libName = "tests/libtest.so";
|
||||
#else
|
||||
char *libName = "tests/libtestrect.dylib";
|
||||
char *libName = "tests/libtest.dylib";
|
||||
#endif
|
||||
return libName;
|
||||
}
|
||||
|
@ -287,7 +287,11 @@ main(int argc, char *argv[])
|
|||
|
||||
if(retVal) {
|
||||
failureCount++;
|
||||
printf("%s (in %s): FAILED\n", testname, testSuiteName);
|
||||
if(retVal == 2) {
|
||||
printf("%s (in %s): FAILED -> No asserts\n", testname, testSuiteName);
|
||||
} else {
|
||||
printf("%s (in %s): FAILED\n", testname, testSuiteName);
|
||||
}
|
||||
} else {
|
||||
passCount++;
|
||||
printf("%s (in %s): ok\n", testname, testSuiteName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue