mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +00:00
Put test filehandles into binary mode.
This commit is contained in:
parent
ec311d78c5
commit
a6dafe881c
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,9 @@ sub ncat {
|
|||
if (!defined $pid) {
|
||||
die "open3 failed";
|
||||
}
|
||||
binmode *IN;
|
||||
binmode *OUT;
|
||||
binmode *ERR;
|
||||
return ($pid, *OUT, *IN, *ERR);
|
||||
}
|
||||
|
||||
|
|
@ -746,10 +749,12 @@ server_client_test_all "Messages are logged to output file",
|
|||
sleep 1;
|
||||
close($c_in);
|
||||
open(FH, "server.log");
|
||||
binmode FH;
|
||||
my $contents = join("", <FH>);
|
||||
close(FH);
|
||||
$contents eq "abc\ndef\n" or die "Server logged " . d($contents);
|
||||
open(FH, "client.log");
|
||||
binmode FH;
|
||||
$contents = join("", <FH>);
|
||||
close(FH);
|
||||
$contents eq "abc\ndef\n" or die "Client logged " . d($contents);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue