]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test/recipes/90-test_memfail.t: print OPENSSL_MALLOC_FAILURES on failure
authorEugene Syromiatnikov <esyr@openssl.org>
Mon, 27 Apr 2026 09:00:32 +0000 (11:00 +0200)
committerNikola Pajkovsky <nikolap@openssl.org>
Thu, 30 Apr 2026 06:58:48 +0000 (06:58 +0000)
So it's easier to reproduce the failure.

Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.foundation>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
MergeDate: Thu Apr 30 06:59:08 2026
(Merged from https://github.com/openssl/openssl/pull/30991)

test/recipes/90-test_memfail.t

index e4a8a0d47af7e17aa44cfd50194685864334e943..f80a479ef623e97709bc3d6751f01b43af9d0690 100644 (file)
@@ -91,7 +91,8 @@ sub run_memfail_test {
         # passing
         #
         $ENV{OPENSSL_MALLOC_FAILURES} = "$skipcount\@0;$idx\@0;1\@100;0\@0";
-        ok(run(test(@cmd)));
+        ok(run(test(@cmd))) || \
+            print STDERR "# OPENSSL_MALLOC_FAILURES=$ENV{OPENSSL_MALLOC_FAILURES}\n";
     }
 }