blob: d5049d14f598af52936e8df63298691b89ecc887 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
# $Id$
# -*- perl -*-
use lib '../../bin';
use PerlACE::Run_Test;
use Cwd;
my $SV = new PerlACE::Process ("tcp_test", "-s");
$SV->Spawn ();
sleep 5;
$CL = new PerlACE::Process ("tcp_test", " -c localhost -i 50000 -b 64");
$CL->Spawn (60);
$client = $CL->WaitKill (60);
$server = $SV->WaitKill (5);
unlink $iorfile;
if ($server != 0 || $client != 0) {
print "ERROR: non-zero status returned by the server or client\n";
exit 1;
}
exit 0;
|