Browse code

spam if lcheck is too old

git-svn: trunk@4121

aCaB authored on 2008/08/20 21:55:42
Showing 3 changed files
... ...
@@ -308,7 +308,7 @@ static Suite *test_cli_suite(void)
308 308
 
309 309
     return s;
310 310
 }
311
-#endif
311
+#endif /* CHECK_HAVE_LOOPS */
312 312
 
313 313
 void errmsg_expected(void)
314 314
 {
... ...
@@ -344,6 +344,8 @@ int main(int argc, char **argv)
344 344
     SRunner *sr = srunner_create(s);
345 345
 #ifdef CHECK_HAVE_LOOPS
346 346
     srunner_add_suite(sr, test_cli_suite());
347
+#else
348
+    printf("*** Warning ***: your check version is too old,\nseveral important test will not execute\n");
347 349
 #endif
348 350
     srunner_add_suite(sr, test_jsnorm_suite());
349 351
     srunner_add_suite(sr, test_str_suite());
... ...
@@ -81,7 +81,7 @@ START_TEST (test_operators)
81 81
 	    fail_unless(!op, "non-operator detected as operator");
82 82
 }
83 83
 END_TEST
84
-#endif
84
+#endif /* CHECK_HAVE_LOOPS */
85 85
 
86 86
 START_TEST (test_token_string)
87 87
 {
... ...
@@ -415,7 +415,7 @@ START_TEST (tokenizer_split)
415 415
 	tokenizer_test(js_tests[_i].in, js_tests[_i].expected, 1);
416 416
 }
417 417
 END_TEST
418
-#endif
418
+#endif /* CHECK_HAVE_LOOPS */
419 419
 
420 420
 START_TEST (js_buffer)
421 421
 {
... ...
@@ -139,7 +139,7 @@ START_TEST (test_suffix)
139 139
 			"suffix number mismatch, expected: %d, was: %d\n", n, cb_called);
140 140
 }
141 141
 END_TEST
142
-#endif
142
+#endif /* CHECK_HAVE_LOOPS */
143 143
 
144 144
 static void setup(void)
145 145
 {
... ...
@@ -263,7 +263,7 @@ START_TEST (regex_list_match_test)
263 263
 	free(realurl);
264 264
 }
265 265
 END_TEST
266
-#endif
266
+#endif /* CHECK_HAVE_LOOPS */
267 267
 
268 268
 static struct cl_engine *engine;
269 269
 static int loaded_2 = 0;