aboutsummaryrefslogtreecommitdiffstats
path: root/test/testutil
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-05-31 14:34:13 +0100
committerMatt Caswell <matt@openssl.org>2019-06-03 13:27:11 +0100
commitcb30e46b45589166a83703f923aa89881dab1e0c (patch)
tree42399cadaa74f7a2fc93905c0006e4e41b73c0ef /test/testutil
parent41525ed62802afd9f125bcf33e986d82bbacd635 (diff)
downloadopenssl-cb30e46b45589166a83703f923aa89881dab1e0c.tar.gz
Really fail if we have a test failure
Commit c5f7a99645a broke the test framework such that some tests might fail, but the test framework still gives a PASS result overall. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9056)
Diffstat (limited to 'test/testutil')
-rw-r--r--test/testutil/driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testutil/driver.c b/test/testutil/driver.c
index 2da83ed727..7a1a5893b3 100644
--- a/test/testutil/driver.c
+++ b/test/testutil/driver.c
@@ -353,6 +353,8 @@ int run_tests(const char *test_prog_name)
verdict = all_tests[i].test_fn();
test_verdict(verdict, "%d - %s", ii + 1, test_title);
finalize(verdict != 0);
+ if (verdict == 0)
+ num_failed++;
} else {
int num_failed_inner = 0;