summaryrefslogtreecommitdiff
path: root/TAO/tests/RTCORBA/Collocation/run_test.pl
blob: 1530202e0a5dba4580e6dc35c3979cda589d93af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
    & eval 'exec perl -S $0 $argv:q'
    if 0;

# $Id$
# -*- perl -*-

use lib "$ENV{ACE_ROOT}/bin";
use PerlACE::TestTarget;

$continuous = ($^O eq 'hpux');

print STDERR "\n********** RTCORBA Collocation Unit Test **********\n\n";

my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";

$T = $server->CreateProcess ("Collocation");

if ($continuous) {
  $T->Arguments("-ORBSvcConf continuous$PerlACE::svcconf_ext");
}

$test = $T->SpawnWaitKill(60);
if ($test == 2) {
  # Mark as no longer running to avoid errors on exit.
  $T->{RUNNING} = 0;
} else {
  if ($test != 0) {
    print STDERR "ERROR: test returned $test\n";
    exit 1;
  }
}

exit 0;