From f7879bc3f3a8d0bbfcc38771732c160a58ba9cd8 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Tue, 8 Jan 2013 07:30:28 -0500 Subject: [PATCH] Testsuite fix for Solaris vendor compiler --- ChangeLog | 5 +++++ testsuite/libffi.call/ffitest.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f60712b..b9145d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-01-08 Anthony Green + + * testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor + compiler. + 2013-01-07 Thorsten Glaser * testsuite/libffi.call/cls_uchar_va.c, diff --git a/testsuite/libffi.call/ffitest.h b/testsuite/libffi.call/ffitest.h index d81d4da..a264fb5 100644 --- a/testsuite/libffi.call/ffitest.h +++ b/testsuite/libffi.call/ffitest.h @@ -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__ -- 2.7.4