Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / ACE / performance-tests / UDP / run_test.pl
blobc3c15b4c57bda1fc6c87ac5f833c0b82adb0f2cc
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 $SV = new PerlACE::Process ("udp_test", "-r");
11 $CL = new PerlACE::Process ("udp_test", "-t -n 10000 localhost");
13 $status = 0;
15 $SV->Spawn ();
17 sleep 5;
19 $client = $CL->SpawnWaitKill (60);
21 $server = $SV->WaitKill (5);
23 if ($server != 0) {
24 print "ERROR: server returned $server\n";
25 $status = 1;
28 if ($client != 0) {
29 print "ERROR: client returned $client\n";
30 $status = 1;
33 exit $status;