If a test that's disabled with tcase_skip_broken_test() is listed
in the GST_CHECKS environment variable, run it anyway.
/* add define to skip broken tests */
#define tcase_skip_broken_test(chain,test_func) \
- if (0) { tcase_add_test(chain,test_func); } else { \
+G_STMT_START { \
+ const char *env = g_getenv ("GST_CHECKS"); \
+ \
+ if (env != NULL && strstr (env, G_STRINGIFY (test_func))) { \
+ tcase_add_test(chain,test_func); \
+ } else { \
g_printerr ("FIXME: skipping test %s because it's broken\n", G_STRINGIFY (test_func)); \
- }
+ } \
+} G_STMT_END
G_END_DECLS