Skip to content

Commit

Permalink
Do not confuse TAP::Parser by mixing up stderr with stdout.
Browse files Browse the repository at this point in the history
This avoids false psotivie failures on FreeBSD-CI which
suffers most from this issue.

Fixes openssl#23992

Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Bernd Edlinger <[email protected]>
(Merged from openssl#25613)
  • Loading branch information
Sashan committed Oct 23, 2024
1 parent 76783a8 commit 3d3bb26
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion util/perl/TLSProxy/Proxy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d3bb26

Please sign in to comment.