diff options
Diffstat (limited to 'TAO/tests/Optimized_Connection/run_test.pl')
-rwxr-xr-x | TAO/tests/Optimized_Connection/run_test.pl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/TAO/tests/Optimized_Connection/run_test.pl b/TAO/tests/Optimized_Connection/run_test.pl new file mode 100755 index 00000000000..e8bfa227e41 --- /dev/null +++ b/TAO/tests/Optimized_Connection/run_test.pl @@ -0,0 +1,30 @@ +eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' + & eval 'exec perl -S $0 $argv:q' + if 0; + +# $Id$ +# -*- perl -*- + +use lib "$ENV{ACE_ROOT}/bin"; +use PerlACE::Run_Test; + +$iorfile = PerlACE::LocalFile ("oc.ior"); +$status = 0; + +$CL_ALT_IIOP = new PerlACE::Process ("client", " -k file://$iorfile " . + "-orbsvcconf oc_svc.conf"); + +if (PerlACE::waitforfile_timed ($iorfile, + $PerlACE::wait_interval_for_process_creation) == -1) { + print STDERR "ERROR: cannot find file <$iorfile>\n"; + exit 1; +} + +$client = $CL_ALT_IIOP->SpawnWaitKill (30); + +if ($client != 0) { + print STDERR "ERROR: client returned $client\n"; + $status = 1; +} + +exit $status; |