diff options
Diffstat (limited to 'TAO/tests/POA/Identity/run_test.pl')
-rwxr-xr-x | TAO/tests/POA/Identity/run_test.pl | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/TAO/tests/POA/Identity/run_test.pl b/TAO/tests/POA/Identity/run_test.pl index df9cee37e8f..477183daba9 100755 --- a/TAO/tests/POA/Identity/run_test.pl +++ b/TAO/tests/POA/Identity/run_test.pl @@ -5,17 +5,23 @@ 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; +use Cwd; -$T = new PerlACE::Process ("Identity", "-ORBobjrefstyle url"); +ACE::checkForTarget(getcwd()); -$test = $T->SpawnWaitKill (60); +$T = Process::Create ($EXEPREFIX."Identity".$EXE_EXT, "-ORBobjrefstyle url"); -if ($test != 0) { - print STDERR "ERROR: test returned $test\n"; - exit 1; +$client = $T->TimedWait (60); +if ($client == -1) { + print STDERR "ERROR: test timedout\n"; + $T->Kill (); $T->TimedWait (1); } -exit 0; +if ($client == -1) { + exit 1; +} +exit 0; |