Testsuite fix for Solaris vendor compiler
authorAnthony Green <green@moxielogic.com>
Tue, 8 Jan 2013 12:30:28 +0000 (07:30 -0500)
committerAnthony Green <green@moxielogic.com>
Tue, 8 Jan 2013 12:30:28 +0000 (07:30 -0500)
ChangeLog
testsuite/libffi.call/ffitest.h

index f60712b24d72f1eed6a5e54ab8cca176e7e85ba4..b9145d165ecf8aa6847cb27ff2abf8c778fa3a19 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-08  Anthony Green  <green@moxielogic.com>
+
+       * testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
+       compiler.
+
 2013-01-07  Thorsten Glaser <tg@mirbsd.org>
 
        * testsuite/libffi.call/cls_uchar_va.c,
index d81d4dabade890effbd93027c69b1f2231be2a54..a264fb5c971b0e6b1761f94455432b970ba038f2 100644 (file)
@@ -15,7 +15,7 @@
 
 #define MAX_ARGS 256
 
-#define CHECK(x) !(x) ? abort() : 0
+#define CHECK(x) !(x) ? (abort(), 1) : 0
 
 /* Define __UNUSED__ that also other compilers than gcc can run the tests.  */
 #undef __UNUSED__