mirror of
https://github.com/nmap/nmap.git
synced 2026-09-10 21:48:12 +00:00
ncat-test.pl: Also test that server is still running
This commit is contained in:
parent
fd8957052a
commit
edc7c4b492
1 changed files with 4 additions and 0 deletions
|
|
@ -224,6 +224,10 @@ sub server_client_test {
|
|||
my $client_args = shift;
|
||||
my $code = shift;
|
||||
($s_pid, $s_out, $s_in) = ncat_server(@$server_args);
|
||||
if (waitpid($s_pid, WNOHANG) != 0) {
|
||||
test($desc, sub {die "Server not running\n"});
|
||||
return;
|
||||
}
|
||||
($c_pid, $c_out, $c_in) = ncat_client(@$client_args);
|
||||
test($desc, $code);
|
||||
kill_children;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue