diff options
Diffstat (limited to 'TAO/examples/PluggableUDP/tests/Performance/run_test.pl')
-rwxr-xr-x | TAO/examples/PluggableUDP/tests/Performance/run_test.pl | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/TAO/examples/PluggableUDP/tests/Performance/run_test.pl b/TAO/examples/PluggableUDP/tests/Performance/run_test.pl index b890a3d36e0..344296fdfa5 100755 --- a/TAO/examples/PluggableUDP/tests/Performance/run_test.pl +++ b/TAO/examples/PluggableUDP/tests/Performance/run_test.pl @@ -9,14 +9,26 @@ use lib "$ENV{ACE_ROOT}/bin"; use PerlACE::Run_Test; $status = 0; -$iorfile = PerlACE::LocalFile ("test.ior"); +$iorbase = "test.ior"; +$iorfile = PerlACE::LocalFile ("$iorbase"); unlink $iorfile; -$SV = new PerlACE::Process ("server", "-ORBEndpoint diop://:12345 -o $iorfile"); +if (PerlACE::is_vxworks_test()) { + $TARGETHOSTNAME = $ENV{'ACE_RUN_VX_TGTHOST'}; + $SV = new PerlACE::ProcessVX ("server", "-ORBEndpoint diop://$TARGETHOSTNAME:12345 -o $iorbase"); +} +else { + $SV = new PerlACE::Process ("server", "-ORBEndpoint diop://:12345 -o $iorfile"); +} $CL = new PerlACE::Process ("client", "-k file://$iorfile -ORBEndpoint diop://:12346"); -$SV->Spawn (); +$server = $SV->Spawn (); + +if ($server != 0) { + print STDERR "ERROR: server returned $server\n"; + exit 1; +} if (PerlACE::waitforfile_timed ($iorfile, $PerlACE::wait_interval_for_process_creation) == -1) { print STDERR "ERROR: could not find file <$iorfile>\n"; |