]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Prefix output to avoid random ok to confuse test parser
authorArmin Fuerst <armin@fuerst.priv.at>
Fri, 11 Feb 2022 18:46:12 +0000 (19:46 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 17 Feb 2022 15:03:24 +0000 (16:03 +0100)
Prefix output of generated dh parameters to avoid misinterpretation
of lines beginning with ok[^a-zA-Z0-9] as a testresult.

Also corrected indent and removed useless comma after last item.

Fixes #17480

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17689)

test/recipes/15-test_gendhparam.t

index b95695b4dc078f9bbdeea1da0c959fde6ec3bb55..37178af643f7663a5a67212b945d3fcaa857ee54 100644 (file)
@@ -118,12 +118,12 @@ my @testdata = (
 #        expect => [ 'BEGIN DH PARAMETERS', 'G:    5' ],
 #        message   => 'DH safe prime generator using an alias',
 #    },
-     {
+    {
         algorithm => 'DHX',
         pkeyopts => [ 'type:generator', 'safeprime-generator:5'],
         expect => [ 'ERROR' ],
         message   => 'safe prime generator should fail for DHX',
-    },
+    }
 );
 
 plan skip_all => "DH isn't supported in this build" if disabled("dh");
@@ -165,7 +165,7 @@ sub compareline {
     }
     print "-----------------\n";
     foreach (@lines) {
-        print $_;
+        print "# ".$_;
     }
     print "-----------------\n";
     foreach my $ex (@expected) {