diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-03-05 03:23:49 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-03-05 03:23:49 +0000 |
commit | 84fe5584b4e402d9c75973163ebd441032497744 (patch) | |
tree | 8bb327569be3f54d7ca99ad830c1c991170ea28d /TAO/tests/Exposed_Policies | |
parent | d39fec54c8f8f970b913d8fcc5d219532dc21cae (diff) | |
download | ATCD-84fe5584b4e402d9c75973163ebd441032497744.tar.gz |
ChangeLogTag:Sun Mar 4 19:12:59 2001 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'TAO/tests/Exposed_Policies')
-rwxr-xr-x | TAO/tests/Exposed_Policies/run_test.pl | 21 |
1 files changed, 14 insertions, 7 deletions
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; |