From c0f1ff5f793549e347ecbe1c52f9356ad739e91d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 5 Aug 2012 17:16:27 +0100 Subject: [PATCH] check: add tcase_skip_broken_test() define Skips broken tests but logs an ERROR-level message to draw attention to that fact. --- libs/gst/check/gstcheck.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/gst/check/gstcheck.h b/libs/gst/check/gstcheck.h index f3964d861c..a527c1b5c0 100644 --- a/libs/gst/check/gstcheck.h +++ b/libs/gst/check/gstcheck.h @@ -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__ */ -- 2.34.1