X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Ftestutil.h;h=399f521a4e9e9ec3c740fe61334f40292333f830;hp=9786579f58aa89b127ad6bd099ef83ee5f9f8b08;hb=fa9ad41476d40185b6fe06fa6564ea01cd527dad;hpb=ad887416f1e59c3294a7d8f83a0ca77120523b4a diff --git a/test/testutil.h b/test/testutil.h index 9786579f58..399f521a4e 100644 --- a/test/testutil.h +++ b/test/testutil.h @@ -99,11 +99,6 @@ tear_down(fixture);\ return result -/* Shorthand if tear_down does nothing. */ -# define EXECUTE_TEST_NO_TEARDOWN(execute_func)\ - result = execute_func(fixture);\ - return result - /* * TEST_CASE_NAME is defined as the name of the test case function where * possible; otherwise we get by with the file name and line number. @@ -142,7 +137,7 @@ const char *test_get_option_argument(const char *option); * rather link to one of the helper main() methods. */ -void add_test(const char *test_case_name, int (*test_fn) ()); +void add_test(const char *test_case_name, int (*test_fn) (void)); void add_all_tests(const char *test_case_name, int (*test_fn)(int idx), int num, int subtest); @@ -170,7 +165,7 @@ void cleanup_tests(void); # endif #endif -# define DECLARE_COMPARISON(type, name, opname) \ +# define DECLARE_COMPARISON(type, name, opname) \ int test_ ## name ## _ ## opname(const char *, int, \ const char *, const char *, \ const type, const type);