diff options
author | Armin Fuerst <armin@fuerst.priv.at> | 2022-02-11 19:46:12 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-02-17 16:06:10 +0100 |
commit | 6ff03e39189b4b1767157d1e1035365036f4f907 (patch) | |
tree | 44482973aab7f11dff494a572b45eb422a32ece3 | |
parent | c6a0cb82bf0772722617a9d1e8c30523452fc52c (diff) |
Prefix output to avoid random ok to confuse test parser
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)
(cherry picked from commit b089d546242bbc073aefb6f6471586e484118863)
-rw-r--r-- | test/recipes/15-test_gendhparam.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/recipes/15-test_gendhparam.t b/test/recipes/15-test_gendhparam.t index b95695b4dc..37178af643 100644 --- a/test/recipes/15-test_gendhparam.t +++ b/test/recipes/15-test_gendhparam.t @@ -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) { |