From: Tomas Mraz Date: Wed, 12 Jan 2022 08:55:43 +0000 (+0100) Subject: test_gendhparam: Drop expected error output X-Git-Tag: openssl-3.2.0-alpha1~3076 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bfb7239daf3d6a89476e163dc925c641d356729;p=thirdparty%2Fopenssl.git test_gendhparam: Drop expected error output Otherwise it sometimes confuses the TAP parser. Fixes #17480 Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/17481) --- diff --git a/test/recipes/15-test_gendhparam.t b/test/recipes/15-test_gendhparam.t index b5fe6448891..b95695b4dc0 100644 --- a/test/recipes/15-test_gendhparam.t +++ b/test/recipes/15-test_gendhparam.t @@ -140,9 +140,17 @@ foreach my $test (@testdata) { push(@pkeyopts, '-pkeyopt'); push(@pkeyopts, $_); } - my @lines = run(app(['openssl', 'genpkey', '-genparam', + my @lines; + if ($expected[0] eq 'ERROR') { + @lines = run(app(['openssl', 'genpkey', '-genparam', + '-algorithm', $alg, '-text', @pkeyopts], + stderr => undef), + capture => 1); + } else { + @lines = run(app(['openssl', 'genpkey', '-genparam', '-algorithm', $alg, '-text', @pkeyopts]), - capture => 1); + capture => 1); + } ok(compareline(\@lines, \@expected), $msg); }