tests: Always print errors before test verdict
authorTomas Mraz <tomas@openssl.org>
Thu, 25 Feb 2021 13:43:21 +0000 (14:43 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 26 Feb 2021 17:43:34 +0000 (18:43 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14316)

test/testutil/driver.c

index 467c3e8eb300e19c76dbd07b60f9a0fee6d7134a..24222fa8650a8bc5756aeca8740d140e36d8f14f 100644 (file)
@@ -327,8 +327,8 @@ int run_tests(const char *test_prog_name)
         } else if (all_tests[i].num == -1) {
             set_test_title(all_tests[i].test_case_name);
             verdict = all_tests[i].test_fn();
-            test_verdict(verdict, "%d - %s", ii + 1, test_title);
             finalize(verdict != 0);
+            test_verdict(verdict, "%d - %s", ii + 1, test_title);
             if (verdict == 0)
                 num_failed++;
         } else {