Support libcheck version 0.9.8 as shipped on RHEL 6.4

This commit is contained in:
Nils O. Selåsdal
2014-01-26 00:58:11 +01:00
parent d26854a632
commit 7c271c1b52
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -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);