Simplify tests part 2
authorEmilia Kasper <emilia@openssl.org>
Fri, 4 Nov 2016 15:06:12 +0000 (16:06 +0100)
committerEmilia Kasper <emilia@openssl.org>
Mon, 7 Nov 2016 15:55:16 +0000 (16:55 +0100)
commitd836d71b2da026b4ed9a2233657b2289ab8e4be0
treec4c9b9e2112eaea750871d66914868ea8585a6da
parent8e47ee18c8f7e59575effdd8dfcfbfff1a365ede
Simplify tests part 2

1) Remove some unnecessary fixtures
2) Add EXECUTE_TEST_NO_TEARDOWN shorthand when a fixture exists but has
no teardown.
3) Fix return values in ct_test.c (introduced by an earlier refactoring,
oops)

Note that for parameterized tests, the index (test vector) usually holds all the
customization, and there should be no need for a separate test
fixture. The CTS test is an exception: it demonstrates how to combine
customization with parameterization.

Reviewed-by: Richard Levitte <levitte@openssl.org>
test/ct_test.c
test/mdc2_internal_test.c
test/modes_internal_test.c
test/poly1305_internal_test.c
test/ssl_test.c
test/ssl_test_ctx_test.c
test/testutil.h