From d4cb1d7daf7e47b61ce4d7d913521ebebc53f192 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Fri, 16 Jul 2010 18:11:55 +0200 Subject: [PATCH] Fix negation errors in CHECK_*_EQ macros --- test/framework.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.47.3