summaryrefslogtreecommitdiff
path: root/TAO/tests/RTCORBA/RTMutex/run_test.pl
blob: 702f8d599f7f1206aa5309198f4ee27e71e7002e (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
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
    & eval 'exec perl -S $0 $argv:q'
    if 0;

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

unshift @INC, '../../../../bin';
require ACEutils;
use Cwd;

$cwd = getcwd();

ACE::checkForTarget($cwd);

print STDERR "\n********** RTCORBA RTMutex Unit Test **********\n\n";
$server_args="";

$SV = Process::Create ($EXEPREFIX."server$EXE_EXT ",
                       $server_args);

$server = $SV->TimedWait (60);
if ($server == -1) {
  print STDERR "ERROR: server timedout\n";
  $SV->Kill (); $SV->TimedWait (1);
}

if ($server != 0) {
  print STDERR "ERROR: server returned $server\n";
  exit 1;
}

exit 0;