mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
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:
parent
8086b267fb
commit
3bfb7239da
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user