From: Eugene Syromiatnikov Date: Mon, 27 Apr 2026 09:02:36 +0000 (+0200) Subject: test/recipes/90-test_memfail.t: fix off-by-one error in skip counts X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=603b06c1c405296c173a851390899e71fcfffd43;p=thirdparty%2Fopenssl.git test/recipes/90-test_memfail.t: fix off-by-one error in skip counts Fixes: 2d6d0831d23f "add a memfail test for x509 operations" Fixes: 437cde84a7ef "add a handshake memory failure test" Signed-off-by: Eugene Syromiatnikov Reviewed-by: Matt Caswell Reviewed-by: Nikola Pajkovsky MergeDate: Thu Apr 30 06:59:09 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 f80a479ef62..f89b1b9e1ec 100644 --- a/test/recipes/90-test_memfail.t +++ b/test/recipes/90-test_memfail.t @@ -78,7 +78,7 @@ plan tests => $total_malloccount; sub run_memfail_test { my $skipcount = $_[0]; - my @mallocseq = (1..$_[1]); + my @mallocseq = (0..$_[1] - 1); my @cmd = $_[2]; for my $idx (@mallocseq) {