summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2936_Regression/run_test.pl
blob: 7dc2e848fb5bc0c5d9d8dbe48d6c02bbb58a03a8 (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 -*-

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

$status = 0;
$file = PerlACE::LocalFile ("test.ior");

unlink $file;

my $class = (PerlACE::is_vxworks_test() ? 'PerlACE::ProcessVX' :
                                          'PerlACE::Process');
$SV = new $class ("bug2936");

print STDERR "\n\n==== Running bug 2936 regression test\n";

$SV->Spawn ();

$collocated = $SV->WaitKill (30);

if ($collocated != 0) {
    print STDERR "ERROR: Bug_2936_Regression returned $collocated\n";
    $status = 1;
}

unlink $file;

exit $status;