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:20:25 +0000 (19:20 +0100)
commit3ead9f3798cb6de93b9824d6f833da9f00d8f5d7
tree0c9ee6578dec597e54f05710448671aa09555051
parent7a9d59c148b773f59a41f8697eeecf369a0974c2
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]