Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / tests / OBV / Collocated / Forward / run_test.pl
blob65b5ff1848075859742bbe569a7dc8ec6a300038
1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
3 if 0;
5 # -*- perl -*-
7 use lib "$ENV{ACE_ROOT}/bin";
8 use PerlACE::TestTarget;
10 my $collocated = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
12 $iorbase = "test.ior";
13 $iorfile = $collocated->LocalFile ("test.ior");
14 $collocated->DeleteFile ($iorbase);
16 $CO = $collocated->CreateProcess ("collocated");
18 $collocated_status = $CO->Spawn ();
20 if ($collocated_status != 0) {
21 print STDERR "ERROR: server returned $collocated_status\n";
22 exit 1;
25 if ($collocated->WaitForFileTimed ($iorbase,
26 $collocated->ProcessStartWaitInterval ()) == -1) {
27 print STDERR "ERROR: cannot find file <$iorfile>\n";
28 $CO->Kill (); $CO->TimedWait (1);
29 exit 1;
32 $collocated_status = $CO->WaitKill ($collocated->ProcessStopWaitInterval ());
34 if ($collocated_status != 0) {
35 print STDERR "ERROR: collocated returned $collocated_status\n";
36 $collocated_status = 1;
39 $collocated->DeleteFile ($iorbase);
41 exit $collocated_status;