diff options
Diffstat (limited to 'TAO/examples/PluggableUDP/tests/SimplePerformance/run_test.pl')
-rwxr-xr-x | TAO/examples/PluggableUDP/tests/SimplePerformance/run_test.pl | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/TAO/examples/PluggableUDP/tests/SimplePerformance/run_test.pl b/TAO/examples/PluggableUDP/tests/SimplePerformance/run_test.pl index 409b87c8380..dbf8873c127 100755 --- a/TAO/examples/PluggableUDP/tests/SimplePerformance/run_test.pl +++ b/TAO/examples/PluggableUDP/tests/SimplePerformance/run_test.pl @@ -9,12 +9,24 @@ use lib "$ENV{ACE_ROOT}/bin"; use PerlACE::Run_Test; $status = 0; -$iorfile = PerlACE::LocalFile ("test.ior"); +$iorbase = "test.ior"; +$iorfile = PerlACE::LocalFile ("$iorbase"); -$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 $iorfile"); +} +else { + $SV = new PerlACE::Process ("server", "-ORBEndpoint diop://:12345 -o $iorfile"); +} $CL = new PerlACE::Process ("client", "-k file://$iorfile"); -$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"; |