Commit c516a5b7 authored by Pekka Pessi's avatar Pekka Pessi

check_nua.c: fixed output when CHECK_NUA_CASES has been set

darcs-hash:20080521144042-db55f-6a3b38544b9d7c7a83585d3632618b177b792e8f.gz
parent 1be63da1
......@@ -54,7 +54,7 @@ void check_nua_tcase_add_test(TCase *tc, TFun tf, char const *name)
for (patterns = test_patterns; *patterns; patterns++) {
if (!fnmatch(*patterns, name, 0)) {
if (strcmp(*patterns, "*")) {
printf("%s: match with %s\n", name, *patterns);
printf("%s: running\n", name);
}
_tcase_add_test(tc, tf, name, 0, 0, 1);
return;
......@@ -64,14 +64,13 @@ void check_nua_tcase_add_test(TCase *tc, TFun tf, char const *name)
for (patterns = test_patterns; *patterns; patterns++) {
if (!strcmp(*patterns, name) || !strcmp(*patterns, "*")) {
if (strcmp(*patterns, "*")) {
printf("%s: match with %s\n", name, *patterns);
printf("%s: running\n", name);
}
_tcase_add_test(tc, tf, name, 0, 0, 1);
return;
}
}
#endif
printf("%s: no match\n", name);
}
int main(int argc, char *argv[])
......@@ -91,6 +90,7 @@ int main(int argc, char *argv[])
patterns = calloc(i, sizeof *patterns);
/* Split by commas */
for (i = 0, s = cases;; i++) {
patterns[i] = s;
if (s == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment