]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
testfw: Handle CHECK(pointer) correctly
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 1 Aug 2010 12:07:27 +0000 (14:07 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 1 Aug 2010 15:20:33 +0000 (17:20 +0200)
test/framework.h

index 5685705544853a526eb6f75da729c824f20aa9f0..55c98793d921c07e81654f431988ce5a25e9b4ea 100644 (file)
@@ -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); \