summaryrefslogtreecommitdiff
path: root/TAO/tests/Exposed_Policies/run_test.pl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Exposed_Policies/run_test.pl')
-rwxr-xr-xTAO/tests/Exposed_Policies/run_test.pl21
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;