From 404bf3ccd1521f784edd24b0f5952627f5ea4bb3 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 1 Aug 2010 14:07:27 +0200 Subject: [PATCH] testfw: Handle CHECK(pointer) correctly --- test/framework.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); \ -- 2.47.3