Commit 298f40e1 authored by Pauli's avatar Pauli Committed by Rich Salz
Browse files

Make test marcos for true/false checks reliable for all integral types.

parent 8313a787
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -291,8 +291,8 @@ void test_info_c90(const char *desc, ...) PRINTF_FORMAT(1, 2);
# define TEST_mem_eq(a, m, b, n) test_mem_eq(__FILE__, __LINE__, #a, #b, a, m, b, n)
# define TEST_mem_ne(a, m, b, n) test_mem_ne(__FILE__, __LINE__, #a, #b, a, m, b, n)

# define TEST_true(a)         test_true(__FILE__, __LINE__, #a, a)
# define TEST_false(a)        test_false(__FILE__, __LINE__, #a, a)
# define TEST_true(a)         test_true(__FILE__, __LINE__, #a, (a) != 0)
# define TEST_false(a)        test_false(__FILE__, __LINE__, #a, (a) != 0)

/*
 * TEST_error(desc, ...) prints an informative error message in the standard