From: Sjoerd Simons Date: Sat, 28 Jul 2012 15:33:52 +0000 (+0200) Subject: check: unbreak fail #define X-Git-Tag: RELEASE-0.11.93~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d9a4b2e94fa806f5146482fb0261d890db38fd5;p=platform%2Fupstream%2Fgstreamer.git check: unbreak fail #define The fail() definition was changed to not fail with non-GCC compilers, unfortunately the change was incorrect and appended the first argument of fail to the expression string instead of making it the message. This change does mean that fail() now requires a message to be passed along. https://bugzilla.gnome.org/show_bug.cgi?id=680755 --- diff --git a/libs/gst/check/libcheck/check.h.in b/libs/gst/check/libcheck/check.h.in index 3ed1acd..b0edb41 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,