Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / orbsvcs / tests / Bug_3486_Regression / run_test.pl
blobcece99cc3b4b466155d0adcb419c43e41a033458
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;
11 $debug_level = '0';
13 foreach $i (@ARGV) {
14 if ($i eq '-debug') {
15 $debug_level = '10';
19 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
20 my $iorbase = "test.ior";
21 my $server_iorfile = $server->LocalFile ($iorbase);
22 $server->DeleteFile($iorbase);
24 $SV = $server->CreateProcess ("server", "-ORBdebuglevel $debug_level");
26 print STDERR "\n\n==== Running bug 3486 regression test\n";
28 $server_status = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
30 if ($server_status != 0) {
31 print STDERR "ERROR: Bug_3486_Regression returned $server_status\n";
32 $status = 1;
35 $server->DeleteFile($iorbase);
37 exit $status;