libs/gst/check/gstcheck.h: Fix ASSERT_CRITICAL and ASSERT_WARNING macros to actually...
authorTim-Philipp Müller <tim@centricular.net>
Tue, 15 Aug 2006 09:33:24 +0000 (09:33 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 15 Aug 2006 09:33:24 +0000 (09:33 +0000)
Original commit message from CVS:
* libs/gst/check/gstcheck.h:
Fix ASSERT_CRITICAL and ASSERT_WARNING macros to actually
print something when they fail.

ChangeLog
libs/gst/check/gstcheck.h

index d07b97b..959722e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-08-15  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * libs/gst/check/gstcheck.h:
+         Fix ASSERT_CRITICAL and ASSERT_WARNING macros to actually
+         print something when they fail.
+
 2006-08-14  Tim-Philipp Müller  <tim at centricular dot net>
 
        * docs/gst/gstreamer-sections.txt:
index bdc6c65..1d0a906 100644 (file)
@@ -220,7 +220,7 @@ G_STMT_START {                                                      \
   _gst_check_raised_critical = FALSE;                          \
   code;                                                                \
   _fail_unless (_gst_check_raised_critical, __FILE__, __LINE__, \
-                "Expected g_critical, got nothing");            \
+                "Expected g_critical, got nothing", NULL);      \
   _gst_check_expecting_log = FALSE;                            \
 } G_STMT_END
 
@@ -230,7 +230,7 @@ G_STMT_START {                                                      \
   _gst_check_raised_warning = FALSE;                           \
   code;                                                                \
   _fail_unless (_gst_check_raised_warning, __FILE__, __LINE__,  \
-                "Expected g_warning, got nothing");             \
+                "Expected g_warning, got nothing", NULL);       \
   _gst_check_expecting_log = FALSE;                            \
 } G_STMT_END