Do not confuse TAP::Parser by mixing up stderr with stdout.

This avoids false psotivie failures on FreeBSD-CI which
suffers most from this issue.

Fixes #23992

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/25613)
This commit is contained in:
Alexandr Nedvedicky 2024-10-05 17:26:24 +02:00
parent 76783a8286
commit 3d3bb26a13

View File

@ -290,8 +290,14 @@ sub start
if ($self->debug) {
print STDERR "Server command: $execcmd\n";
}
my $sin = undef;
my $sout = undef;
if ("$^O" eq "MSWin32") {
$pid = IPC::Open2::open2($sout, $sin, $execcmd) or die "Failed to $execcmd: $!\n";
} else {
$pid = IPC::Open3::open3($sin, $sout, undef, $execcmd) or die "Failed to $execcmd: $!\n";
}
$pid = IPC::Open2::open2(my $sout, my $sin, $execcmd) or die "Failed to $execcmd: $!\n";
$self->{serverpid} = $pid;
# Process the output from s_server until we find the ACCEPT line, which