From 84fe5584b4e402d9c75973163ebd441032497744 Mon Sep 17 00:00:00 2001 From: brunsch Date: Mon, 5 Mar 2001 03:23:49 +0000 Subject: ChangeLogTag:Sun Mar 4 19:12:59 2001 Darrell Brunsch --- TAO/tests/Exposed_Policies/run_test.pl | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'TAO/tests/Exposed_Policies') diff --git a/TAO/tests/Exposed_Policies/run_test.pl b/TAO/tests/Exposed_Policies/run_test.pl index ac554807b90..3f4a6a204c0 100755 --- a/TAO/tests/Exposed_Policies/run_test.pl +++ b/TAO/tests/Exposed_Policies/run_test.pl @@ -10,8 +10,9 @@ require PerlACE::Run_Test; $poa_file = PerlACE::LocalFile ("POA.cfg"); $obj_file = PerlACE::LocalFile ("Object.cfg"); +$server_conf = PerlACE::LocalFile ("server.conf"); -$SV = new PerlACE::Process ("server", "-ORBSvcConf server.conf" +$SV = new PerlACE::Process ("server", "-ORBSvcConf $server_conf" . " -ORBendpoint iiop://localhost:0/priority=5" . " -ORBendpoint iiop://localhost:0/priority=15" . " -POAConfigFile $poa_file" @@ -25,12 +26,18 @@ $SV->Spawn (); sleep (5); -if ($CL->SpawnWaitKill (60) == -1) { - print STDERR "ERROR: client timedout\n"; - $CL->Kill (); - exit 1; +$client = $CL->SpawnWaitKill (60); + +if ($client != 0) { + print STDERR "ERROR: client returned $client\n"; + $status = 1; } -$SV->Kill (); +$server = $SV->TerminateWaitKill (10); + +if ($server != 0) { + print STDERR "ERROR: server returned $server\n"; + $status = 1; +} -exit 0; +exit $status; -- cgit v1.2.1