diff options
Diffstat (limited to 'TAO/examples/POA/RootPOA/run_test.pl')
-rwxr-xr-x | TAO/examples/POA/RootPOA/run_test.pl | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/TAO/examples/POA/RootPOA/run_test.pl b/TAO/examples/POA/RootPOA/run_test.pl index c0f3a87b057..e54f8e731a5 100755 --- a/TAO/examples/POA/RootPOA/run_test.pl +++ b/TAO/examples/POA/RootPOA/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 ("RootPOA"); +$T = Process::Create ($EXEPREFIX."RootPOA".$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; |