mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
352a4b5b07
commit
c0f1ff5f79
1 changed files with 6 additions and 0 deletions
|
@ -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__ */
|
||||
|
|
Loading…
Reference in a new issue