diff options
author | Emilia Kasper <emilia@openssl.org> | 2016-04-05 14:29:06 +0200 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2016-04-05 17:05:40 +0200 |
commit | ababe86b9674dca24ffb6b342fe7af852cf53466 (patch) | |
tree | ee83b13735085f16145d498f8a1b8626538121ad /test/testutil.c | |
parent | 6e863f07376e1c8ae7c89477234db50838784d99 (diff) | |
download | openssl-ababe86b9674dca24ffb6b342fe7af852cf53466.tar.gz |
testutil: return 1 on success
Require that test methods return 1 on success (not 0). This is more
customary for OpenSSL.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/testutil.c')
-rw-r--r-- | test/testutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testutil.c b/test/testutil.c index ccb6248234..3f63784880 100644 --- a/test/testutil.c +++ b/test/testutil.c @@ -113,14 +113,14 @@ int run_tests(const char *test_prog_name) for (i = 0; i != num_tests; ++i) { if (all_tests[i].num == -1) { - if (all_tests[i].test_fn()) { + if (!all_tests[i].test_fn()) { printf("** %s failed **\n--------\n", all_tests[i].test_case_name); ++num_failed; } } else { for (j = 0; j < all_tests[i].num; j++) { - if (all_tests[i].param_test_fn(j)) { + if (!all_tests[i].param_test_fn(j)) { printf("** %s failed test %d\n--------\n", all_tests[i].test_case_name, j); ++num_failed; |