]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
25-test_verify_store.t: Add missing capture for bare run()
authorTomas Mraz <tomas@openssl.foundation>
Wed, 24 Jun 2026 10:02:02 +0000 (12:02 +0200)
committerTomas Mraz <tomas@openssl.foundation>
Thu, 25 Jun 2026 16:43:40 +0000 (18:43 +0200)
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 <esyr@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Bob Beck <beck@openssl.org>
MergeDate: Thu Jun 25 16:44:51 2026
(Merged from https://github.com/openssl/openssl/pull/31700)

test/recipes/25-test_verify_store.t

index 0db8e6238d02d0db5101505f84429d672763917b..bfac17c7f4cc1fa5d80d52ac75a5036ffc54d5b3 100644 (file)
@@ -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");