test_gendhparam: Drop expected error output

Otherwise it sometimes confuses the TAP parser.

Fixes #17480

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/17481)
This commit is contained in:
Tomas Mraz 2022-01-12 09:55:43 +01:00
parent 8086b267fb
commit 3bfb7239da

View File

@ -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);
}