Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / Bug_2869_Regression / run_test.pl
blobf6cea32463767e85bd808f108b03454953f3e976
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 $status = 0;
12 my $client = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
14 my $iorbase = "test.ior";
15 my $client_iorfile = $client->LocalFile ($iorbase);
17 $client->DeleteFile($iorbase);
19 $CL = $client->CreateProcess ("client", "-k $client_iorfile");
21 $client_status = $CL->Spawn ();
23 if ($client_status != 0) {
24 print STDERR "ERROR: client returned $client_status\n";
25 exit 1;
28 if ($client->WaitForFileTimed ($iorbase,
29 $client->ProcessStartWaitInterval()) == -1) {
30 print STDERR "ERROR: cannot find file <$client_iorfile>\n";
31 $CL->Kill (); $CL->TimedWait (1);
32 exit 1;
35 $client_status = $CL->WaitKill ($client->ProcessStopWaitInterval ());
37 if ($client_status != 0) {
38 print STDERR "ERROR: client returned $client_status\n";
39 $status = 1;
42 $client->DeleteFile($iorbase);
44 exit $status;