Merge branch 'master' into jwi-bcc64xsingletonwarning
[ACE_TAO.git] / ACE / examples / Reactor / TP_Reactor / run_test.pl
blob8dbc13c295a65ec43a2829b529a2e6537127d764
1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
3 if 0;
5 # -*- perl -*-
7 use lib "$ENV{ACE_ROOT}/bin";
8 use PerlACE::TestTarget;
10 $status = 0;
12 $SV = new PerlACE::Process ("server", "");
13 $CL1 = new PerlACE::Process ("client", "80 100");
14 $CL2 = new PerlACE::Process ("client", "80 100");
15 $SV->Spawn ();
17 sleep (1);
19 $client1 = $CL1->Spawn ();
21 if ($client1 != 0) {
22 print STDERR "ERROR: client 1 returned $client1\n";
23 $status = 1;
26 $client2 = $CL2->Spawn ();
28 if ($client2 != 0) {
29 print STDERR "ERROR: client 2 returned $client2\n";
30 $status = 1;
33 $server = $SV->WaitKill (1000);
35 if ($server != 0) {
36 print STDERR "ERROR: server returned $server\n";
37 $status = 1;
40 exit $status;