From: Joel Rosdahl Date: Sun, 1 Aug 2010 12:07:27 +0000 (+0200) Subject: testfw: Handle CHECK(pointer) correctly X-Git-Tag: v3.1~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=404bf3ccd1521f784edd24b0f5952627f5ea4bb3;p=thirdparty%2Fccache.git testfw: Handle CHECK(pointer) correctly --- diff --git a/test/framework.h b/test/framework.h index 568570554..55c98793d 100644 --- a/test/framework.h +++ b/test/framework.h @@ -51,8 +51,7 @@ #define CHECK(assertion) \ do { \ - int ok = (assertion); \ - if (ok) { \ + if ((assertion)) { \ cct_check_passed(); \ } else { \ cct_check_failed(__FILE__, __LINE__, #assertion, NULL, NULL); \