mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
libs/gst/check/gstcheck.h: Fix compilation and running against 0.9.4. Fixes #377332.
Original commit message from CVS: Patch by: Sebastian Droege <slomo at ubuntu dot com> * libs/gst/check/gstcheck.h: Fix compilation and running against 0.9.4. Fixes #377332.
This commit is contained in:
parent
f830f6f4ac
commit
2760bf504d
2 changed files with 19 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2006-11-20 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
Patch by: Sebastian Droege <slomo at ubuntu dot com>
|
||||||
|
|
||||||
|
* libs/gst/check/gstcheck.h:
|
||||||
|
Fix compilation and running against 0.9.4. Fixes #377332.
|
||||||
|
|
||||||
2006-11-20 Wim Taymans <wim@fluendo.com>
|
2006-11-20 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/gstsegment.c: (gst_segment_set_seek),
|
* gst/gstsegment.c: (gst_segment_set_seek),
|
||||||
|
|
|
@ -83,13 +83,24 @@ gst_check_message_error (msg, GST_MESSAGE_ERROR, \
|
||||||
/***
|
/***
|
||||||
* wrappers for START_TEST and END_TEST
|
* wrappers for START_TEST and END_TEST
|
||||||
*/
|
*/
|
||||||
|
#if CHECK_MAJOR_VERSION >= 0 && CHECK_MINOR_VERSION >= 9 && CHECK_MICRO_VERSION >= 4
|
||||||
#define GST_START_TEST(__testname) \
|
#define GST_START_TEST(__testname) \
|
||||||
static void __testname (void)\
|
static void __testname (int __i__)\
|
||||||
{\
|
{\
|
||||||
GST_DEBUG ("test start"); \
|
GST_DEBUG ("test start"); \
|
||||||
tcase_fn_start (""# __testname, __FILE__, __LINE__);
|
tcase_fn_start (""# __testname, __FILE__, __LINE__);
|
||||||
|
|
||||||
#define GST_END_TEST END_TEST
|
#define GST_END_TEST END_TEST
|
||||||
|
#else
|
||||||
|
#define GST_START_TEST(__testname) \
|
||||||
|
static void __testname ()\
|
||||||
|
{\
|
||||||
|
GST_DEBUG ("test start"); \
|
||||||
|
tcase_fn_start (""# __testname, __FILE__, __LINE__);
|
||||||
|
|
||||||
|
#define GST_END_TEST END_TEST
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* additional fail macros */
|
/* additional fail macros */
|
||||||
#define fail_unless_equals_int(a, b) \
|
#define fail_unless_equals_int(a, b) \
|
||||||
|
|
Loading…
Reference in a new issue