Wed May 21 10:40:42 EDT 2008 Pekka Pessi <first.last@nokia.com>

* check_nua.c: fixed output when CHECK_NUA_CASES has been set



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8601 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-05-25 03:23:35 +00:00
parent 66a57f4927
commit 8d11dde301

View File

@ -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)