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.pl68
1 files changed, 0 insertions, 68 deletions
diff --git a/TAO/tests/Exposed_Policies/run_test.pl b/TAO/tests/Exposed_Policies/run_test.pl
deleted file mode 100755
index 9ea2e82c7d1..00000000000
--- a/TAO/tests/Exposed_Policies/run_test.pl
+++ /dev/null
@@ -1,68 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib "../../../bin";
-require PerlACE::Run_Test;
-
-$base_ior_file = PerlACE::LocalFile ("default.ior");
-$overridden_ior_file = PerlACE::LocalFile ("overridden.ior");
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server",
- " -POAConfigFile POA.cfg" .
- " -ObjectConfigFile Object.cfg" .
- " -BaseObjectIOR default.ior" .
- " -OverriddenIOR overridden.ior");
-}
-else {
- if ($^O eq "dec_osf") {
- $poa_file = PerlACE::LocalFile ("POA.cfg.tru64");
- $obj_file = PerlACE::LocalFile ("Object.cfg.tru64");
- }
- else {
- $poa_file = PerlACE::LocalFile ("POA.cfg");
- $obj_file = PerlACE::LocalFile ("Object.cfg");
- }
- $SV = new PerlACE::Process ("server",
- " -POAConfigFile $poa_file" .
- " -ObjectConfigFile $obj_file" .
- " -BaseObjectIOR $base_ior_file" .
- " -OverriddenIOR $overridden_ior_file");
-}
-
-$CL = new PerlACE::Process ("client", "-POAConfigFile $poa_file"
- . " -ObjectConfigFile $obj_file"
- . " -BaseObjectIOR $base_ior_file"
- . " -OverriddenIOR $overridden_ior_file");
-
-$status = 0;
-
-unlink($base_ior_file);
-unlink($overridden_ior_file);
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($base_ior_file, 15) == -1) {
- print STDERR "ERROR: cannot find file <$base_ior_file>\n";
- $SV->Kill ();
- exit 1;
-}
-
-$client = $CL->SpawnWaitKill (30);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$server = $SV->TerminateWaitKill (10);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-exit $status;