Remove tests dependence on e_os.h
authorPauli <paul.dale@oracle.com>
Thu, 17 Aug 2017 23:50:25 +0000 (09:50 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 17 Aug 2017 23:50:25 +0000 (09:50 +1000)
commitb99fe5f4927b305bae88daac2484c284fe749329
tree0497ffa8a2d0e0ea72ecca5d32d6878888835fd4
parent524fdd515569e12047ddb29ba4c7f19706aacc98
Remove tests dependence on e_os.h

Apart from ssltest_old.c, the test suite relied on e_os.h for the
OSSL_NELEM macro and nothing else.

The ssltest_old.c also requires EXIT and some socket macros.

Create a new header to define the OSSL_NELEM macro and use that instead.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4186)
58 files changed:
e_os.h
include/internal/nelem.h [new file with mode: 0644]
test/asn1_internal_test.c
test/asn1_time_test.c
test/bad_dtls_test.c
test/bftest.c
test/bntest.c
test/casttest.c
test/cipher_overhead_test.c
test/cipherbytes_test.c
test/cipherlist_test.c
test/ciphername_test.c
test/constant_time_test.c
test/crltest.c
test/d2i_test.c
test/danetest.c
test/dhtest.c
test/drbgtest.c
test/dsatest.c
test/dtlsv1listentest.c
test/ecstresstest.c
test/ectest.c
test/evp_extra_test.c
test/exptest.c
test/handshake_helper.c
test/hmactest.c
test/ideatest.c
test/igetest.c
test/lhash_test.c
test/md2test.c
test/mdc2_internal_test.c
test/mdc2test.c
test/modes_internal_test.c
test/poly1305_internal_test.c
test/rc2test.c
test/rc4test.c
test/rc5test.c
test/rsa_test.c
test/servername_test.c
test/siphash_internal_test.c
test/ssl_cert_table_internal_test.c
test/ssl_test_ctx.c
test/ssl_test_ctx_test.c
test/sslapitest.c
test/ssltest_old.c
test/ssltestlib.c
test/stack_test.c
test/test_test.c
test/testutil/driver.c
test/testutil/format_output.c
test/testutil/main.c
test/testutil/stanza.c
test/testutil/tests.c
test/time_offset_test.c
test/v3nametest.c
test/x509_internal_test.c
test/x509_time_test.c
test/x509aux.c