Commit 379d7be40d for openssl.org
commit 379d7be40dd23cbec2169ce19062009d98937633
Author: Eugene Syromiatnikov <esyr@openssl.org>
Date: Mon Apr 27 11:00:32 2026 +0200
test/recipes/90-test_memfail.t: print OPENSSL_MALLOC_FAILURES on failure
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)
diff --git a/test/recipes/90-test_memfail.t b/test/recipes/90-test_memfail.t
index e4a8a0d47a..f80a479ef6 100644
--- a/test/recipes/90-test_memfail.t
+++ b/test/recipes/90-test_memfail.t
@@ -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";
}
}