[Bug 667655] test/checks/elements/jifmux.c compile failure because of fail() calls with no arguments

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jan 18 07:17:37 PST 2012


https://bugzilla.gnome.org/show_bug.cgi?id=667655
  GStreamer | gst-plugins-bad | 0.10.22

Vincent Penquerc'h <vincent.penquerch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #3 from Vincent Penquerc'h <vincent.penquerch at collabora.co.uk> 2012-01-18 15:17:32 UTC ---
In fact, I think it might be as simple as this patch, since the first argument,
if present, would be a format string. Does this make it work for you ? If so we
won't need different definitions.


diff --git a/libs/gst/check/libcheck/check.h.in
b/libs/gst/check/libcheck/check.h.in
index 231fdbb..3ed1acd 100644
--- a/libs/gst/check/libcheck/check.h.in
+++ b/libs/gst/check/libcheck/check.h.in
@@ -232,7 +232,7 @@ static void __testname (int _i CK_ATTRIBUTE_UNUSED)\
         "Failure '"#expr"' occured" , ## __VA_ARGS__, NULL)

 /* Always fail */
-#define fail(...) _fail_unless(0, __FILE__, __LINE__, "Failed" , ##
__VA_ARGS__, NULL)
+#define fail(...) _fail_unless(0, __FILE__, __LINE__, "Failed"  __VA_ARGS__,
NULL)

 /* Non macro version of #fail_unless, with more complicated interface */
 void CK_EXPORT _fail_unless (int result, const char *file,

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list