summaryrefslogtreecommitdiff
path: root/TAO/tests/Compression
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2008-11-17 10:36:05 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2008-11-17 10:36:05 +0000
commit3b3315b9848df9a4bb404780dfd53b3c3b9ab396 (patch)
tree830d0163f87721a8832d0e67f70698752307aba9 /TAO/tests/Compression
parent2bed7e673b407d4f810dc9c1158689e035c83868 (diff)
downloadATCD-3b3315b9848df9a4bb404780dfd53b3c3b9ab396.tar.gz
Mon Nov 17 10:35:12 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tests/Compression')
-rwxr-xr-xTAO/tests/Compression/run_test.pl27
1 files changed, 10 insertions, 17 deletions
diff --git a/TAO/tests/Compression/run_test.pl b/TAO/tests/Compression/run_test.pl
index 13b74229e7b..d1d85802727 100755
--- a/TAO/tests/Compression/run_test.pl
+++ b/TAO/tests/Compression/run_test.pl
@@ -1,29 +1,22 @@
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
+ & eval 'exec perl -S $0 $argv:q'
+ if 0;
# $Id$
# -*- perl -*-
use lib "$ENV{ACE_ROOT}/bin";
-use PerlACE::Run_Test;
+use PerlACE::TestTarget;
-$status = 0;
+my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
-print STDOUT "Collocation\n\n";
+$SV = $server->CreateProcess ("server");
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server");
-}
-else {
- $SV = new PerlACE::Process ("server");
-}
-
-$server = $SV->SpawnWaitKill (60);
+$test = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
-if ($server != 0) {
- print STDERR "ERROR: Collocation returned $server \n";
- $status = 1;
+if ($test != 0) {
+ print STDERR "ERROR: test returned $test\n";
+ exit 1;
}
-exit $status;
+exit 0;