提交 3bfb7239 编写于 作者: T Tomas Mraz

test_gendhparam: Drop expected error output

Otherwise it sometimes confuses the TAP parser.

Fixes #17480
Reviewed-by: NBernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/17481)
上级 8086b267
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册