diff options
Diffstat (limited to 'TAO/tests/POA/wait_for_completion/run_test.pl')
-rwxr-xr-x | TAO/tests/POA/wait_for_completion/run_test.pl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/TAO/tests/POA/wait_for_completion/run_test.pl b/TAO/tests/POA/wait_for_completion/run_test.pl index 8b5cd957c73..f664fb47d21 100755 --- a/TAO/tests/POA/wait_for_completion/run_test.pl +++ b/TAO/tests/POA/wait_for_completion/run_test.pl @@ -8,12 +8,9 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' use lib "$ENV{ACE_ROOT}/bin"; use PerlACE::Run_Test; -if (PerlACE::is_vxworks_test()) { - $T = new PerlACE::ProcessVX ("wait_for_completion"); -} -else { - $T = new PerlACE::Process ("wait_for_completion"); -} +my $class = (PerlACE::is_vxworks_test() ? 'PerlACE::ProcessVX' : + 'PerlACE::Process'); +$T = new $class ("wait_for_completion"); $test = $T->SpawnWaitKill ($PerlACE::wait_interval_for_process_creation); |