summaryrefslogtreecommitdiff
path: root/TAO/tests/RTCORBA/Policies/run_test.pl
diff options
context:
space:
mode:
authorwolff1 <wolff1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-04-16 00:49:06 +0000
committerwolff1 <wolff1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-04-16 00:49:06 +0000
commitd5c3e91779887950d9f5db14f1cd5794ccbfe8f1 (patch)
treec03ef292d4b133e298ced7a64b952f321a7cc3dc /TAO/tests/RTCORBA/Policies/run_test.pl
parent11332bf38b806102b1009539d6c159fe34064462 (diff)
downloadATCD-d5c3e91779887950d9f5db14f1cd5794ccbfe8f1.tar.gz
merged in revisions 84573 - 85094 from DOC/Middleware/trunk/TAO
Diffstat (limited to 'TAO/tests/RTCORBA/Policies/run_test.pl')
-rwxr-xr-xTAO/tests/RTCORBA/Policies/run_test.pl16
1 files changed, 6 insertions, 10 deletions
diff --git a/TAO/tests/RTCORBA/Policies/run_test.pl b/TAO/tests/RTCORBA/Policies/run_test.pl
index 03c90ceff0b..9629a5c8a64 100755
--- a/TAO/tests/RTCORBA/Policies/run_test.pl
+++ b/TAO/tests/RTCORBA/Policies/run_test.pl
@@ -6,19 +6,15 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
# -*- perl -*-
use lib "$ENV{ACE_ROOT}/bin";
-use PerlACE::Run_Test;
+use PerlACE::TestTarget;
-if (PerlACE::is_vxworks_test()) {
- $T = new PerlACE::ProcessVX ("Policies");
-}
-else {
- $T = new PerlACE::Process ("Policies");
-}
+my $policies = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
-$test = $T->SpawnWaitKill (60);
+$SV = $policies->CreateProcess ("Policies");
+$status = $SV->SpawnWaitKill ($policies->ProcessStopWaitInterval ());
-if ($test != 0) {
- print STDERR "ERROR: test returned $test\n";
+if ($status != 0) {
+ print STDERR "ERROR: test returns $status\n";
exit 1;
}