check: add tcase_skip_broken_test() define

Skips broken tests but logs an ERROR-level message to
draw attention to that fact.
This commit is contained in:
Tim-Philipp Müller 2012-08-05 17:16:27 +01:00
parent 352a4b5b07
commit c0f1ff5f79

View file

@ -524,6 +524,12 @@ __gst_tcase_add_test (TCase * tc, TFun tf, const char * fname, int signal,
#define _tcase_add_test __gst_tcase_add_test
/* add define to skip broken tests */
#define tcase_skip_broken_test(chain,test_func) \
if (0) { tcase_add_test(chain,test_func); } else { \
GST_ERROR ("FIXME: skipping test %s because it's broken.", G_STRINGIFY (test_func)); \
}
G_END_DECLS
#endif /* __GST_CHECK_H__ */