projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
352a4b5
)
check: add tcase_skip_broken_test() define
author
Tim-Philipp Müller
<tim@centricular.net>
Sun, 5 Aug 2012 16:16:27 +0000
(17:16 +0100)
committer
Tim-Philipp Müller
<tim@centricular.net>
Sun, 5 Aug 2012 16:16:27 +0000
(17:16 +0100)
Skips broken tests but logs an ERROR-level message to
draw attention to that fact.
libs/gst/check/gstcheck.h
patch
|
blob
|
history
diff --git
a/libs/gst/check/gstcheck.h
b/libs/gst/check/gstcheck.h
index f3964d861c2e720fb7ca1e7acf03bb2b8f7a7c2c..a527c1b5c01c0b65d88be33c7dbd976d2730091c 100644
(file)
--- 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__ */