diff options
Diffstat (limited to 'TAO/performance-tests/POA/Object_Creation_And_Registration/run_test.pl')
-rwxr-xr-x | TAO/performance-tests/POA/Object_Creation_And_Registration/run_test.pl | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/TAO/performance-tests/POA/Object_Creation_And_Registration/run_test.pl b/TAO/performance-tests/POA/Object_Creation_And_Registration/run_test.pl index edb693dbf93..1c23e2a8df2 100755 --- a/TAO/performance-tests/POA/Object_Creation_And_Registration/run_test.pl +++ b/TAO/performance-tests/POA/Object_Creation_And_Registration/run_test.pl @@ -5,16 +5,20 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' # $Id$ # -*- perl -*- -use lib '../../../../bin'; -use PerlACE::Run_Test +unshift @INC, '../../../../bin'; +require Process; +require ACEutils; -$T = new PerlACE::Process ("registration"); +$T = Process::Create ($EXEPREFIX."registration".$EXE_EXT, ""); -$test = $T->SpawnWaitKill (60); +$client = $T->TimedWait (60); +if ($client == -1) { + print STDERR "ERROR: test timedout\n"; + $T->Kill (); $T->TimedWait (1); +} -if ($test != 0) { - print STDERR "ERROR: test returned $test\n"; - exit 1; +if ($client == -1) { + exit 1; } exit 0; |