[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Mon Apr 10 23:51:45 UTC 2017


The branch master has been updated
       via  298f40e1f14981e535f82edf407718680ad7f86a (commit)
      from  8313a787d770ac1d7ddafcbc41b13e7fb5841eae (commit)


- Log -----------------------------------------------------------------
commit 298f40e1f14981e535f82edf407718680ad7f86a
Author: Pauli <paul.dale at oracle.com>
Date:   Mon Apr 10 07:13:59 2017 +1000

    Make test marcos for true/false checks reliable for all integral types.
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/3154)

-----------------------------------------------------------------------

Summary of changes:
 test/testutil.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/testutil.h b/test/testutil.h
index 1ca295c..a83323b 100644
--- a/test/testutil.h
+++ b/test/testutil.h
@@ -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


More information about the openssl-commits mailing list