check: use globbing for selective test invocation via GST_CHECKS

Use glib globbing instead of simple string matching to allow e.g.
GST_CHECKS="test_inter*" make gst/gstcaps.check
This commit is contained in:
Stefan Kost 2010-06-06 23:19:58 +03:00
parent 94ed3c370a
commit 6ea0bdadd5

View file

@ -606,7 +606,7 @@ _gst_check_run_test_func (const gchar * func_name)
/* only run specified functions */
funcs = g_strsplit (gst_checks, ",", -1);
for (f = funcs; f != NULL && *f != NULL; ++f) {
if (strcmp (*f, func_name) == 0) {
if (g_pattern_match_simple (*f, func_name)) {
res = TRUE;
break;
}