]> granicus.if.org Git - openssl/commit
Create test/testutil.h for unit test helper macros
authorMike Bland <mbland@acm.org>
Sat, 7 Jun 2014 17:05:50 +0000 (13:05 -0400)
committerMatt Caswell <matt@openssl.org>
Tue, 10 Jun 2014 18:24:46 +0000 (19:24 +0100)
commit2fddc5fc09be520232ea2799f14791bedd23c3a4
treedbbf7bd3ab4a33f1bce0a35305c7bd2f740ef2db
parente3beef1e1bdd70031d009dc61ab88b74a4c884c8
Create test/testutil.h for unit test helper macros

Defines SETUP_TEST_FIXTURE and EXECUTE_TEST, and updates ssl/heartbeat_test.c
using these macros. SETUP_TEST_FIXTURE makes use of the new TEST_CASE_NAME
macro, defined to use __func__ or __FUNCTION__ on platforms that support those
symbols, or to use the file name and line number otherwise. This should fix
several reported build problems related to lack of C99 support.
ssl/heartbeat_test.c
test/testutil.h [new file with mode: 0644]