Support libcheck version 0.9.8 as shipped on RHEL 6.4
This commit is contained in:
@@ -94,8 +94,13 @@ main (int argc, char *argv[])
|
||||
if (test_case == NULL) {
|
||||
srunner_run_all (sr, CK_VERBOSE);
|
||||
} else {
|
||||
#if CHECK_MAJOR_VERSION == 0 && CHECK_MINOR_VERSION == 9 && CHECK_MICRO_VERSION <= 8
|
||||
printf("Sorry, this libcheck version does not support running individual test cases");
|
||||
return 3;
|
||||
#else
|
||||
printf("Running %s only\n", test_case);
|
||||
srunner_run(sr, NULL, test_case, CK_VERBOSE);
|
||||
#endif
|
||||
}
|
||||
number_failed = srunner_ntests_failed (sr);
|
||||
srunner_free (sr);
|
||||
|
||||
Reference in New Issue
Block a user