From: Tomas Mraz Date: Wed, 24 Jun 2026 10:02:02 +0000 (+0200) Subject: 25-test_verify_store.t: Add missing capture for bare run() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe44705758b57f68428b6ed1ee74d6caee64ea8b;p=thirdparty%2Fopenssl.git 25-test_verify_store.t: Add missing capture for bare run() We want to add the printed out pubkey and not just 1. Also add a comment clarifying intention of this exercise. Fixes 77c979faf47b Reviewed-by: Eugene Syromiatnikov Reviewed-by: David von Oheimb Reviewed-by: Bob Beck MergeDate: Thu Jun 25 16:44:51 2026 (Merged from https://github.com/openssl/openssl/pull/31700) --- diff --git a/test/recipes/25-test_verify_store.t b/test/recipes/25-test_verify_store.t index 0db8e6238d0..bfac17c7f4c 100644 --- a/test/recipes/25-test_verify_store.t +++ b/test/recipes/25-test_verify_store.t @@ -72,9 +72,11 @@ SKIP: { -CAstore => $CAcert, $CAcert ); + # Put a pubkey and DH params to the store to test + # that other things in the store are just ignored open(my $out, '>', $CAobjects) or die $!; - my $pubkey = run(app(["openssl", "x509", "-pubkey", "-noout", "-in", $CAcert])); - print $out $pubkey; + my @pubkey = run(app([qw(openssl x509 -pubkey -noout -in), $CAcert]), capture => 1); + print $out @pubkey; my @files; push @files, srctop_file("test", "certs", "dhp2048.pem") unless disabled("dh");