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:27:45 +0000 (19:27 +0100)
commit5a0d057e49a6f7b5ee5ff6f8af5ae395abc7b918
tree713d67063b149bff434cb1303bf7db0540373805
parentaa59369b4ca279d9896d45085e229d9803ad45eb
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]