From: Matt Caswell Date: Fri, 31 May 2019 13:34:13 +0000 (+0100) Subject: Really fail if we have a test failure X-Git-Tag: openssl-3.0.0-alpha1~2000 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb30e46b45589166a83703f923aa89881dab1e0c;p=thirdparty%2Fopenssl.git 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 (Merged from https://github.com/openssl/openssl/pull/9056) --- diff --git a/test/testutil/driver.c b/test/testutil/driver.c index 2da83ed7278..7a1a5893b3b 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;