From: Joel Rosdahl Date: Fri, 16 Jul 2010 16:11:55 +0000 (+0200) Subject: Fix negation errors in CHECK_*_EQ macros X-Git-Tag: v3.1~172 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4cb1d7daf7e47b61ce4d7d913521ebebc53f192;p=thirdparty%2Fccache.git Fix negation errors in CHECK_*_EQ macros --- diff --git a/test/framework.h b/test/framework.h index 1eb66814f..8c8b19fce 100644 --- a/test/framework.h +++ b/test/framework.h @@ -62,7 +62,7 @@ #define CHECK_POINTER_EQ_BASE(t, e, a, f1, f2) \ do { \ - if (cct_check_##t##_eq(__FILE__, __LINE__, #a, (e), (a), (f1), (f2))) { \ + if (!cct_check_##t##_eq(__FILE__, __LINE__, #a, (e), (a), (f1), (f2))) { \ return _test_counter; \ } \ } while (0) @@ -71,14 +71,14 @@ #define CHECK_INT_EQ(expected, actual) \ do { \ - if (cct_check_int_eq(__FILE__, __LINE__, #actual, (expected), (actual))) { \ + if (!cct_check_int_eq(__FILE__, __LINE__, #actual, (expected), (actual))) { \ return _test_counter; \ } \ } while (0) #define CHECK_UNS_EQ(expected, actual) \ do { \ - if (cct_check_int_eq(__FILE__, __LINE__, #actual, (expected), (actual))) { \ + if (!cct_check_int_eq(__FILE__, __LINE__, #actual, (expected), (actual))) { \ return _test_counter; \ } \ } while (0)