Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / Bug_3663_Regression / run_test.pl
blob8b312cf298dba3fed93abbc53f7524dfd32cf5ba
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';
20 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
21 my $iorbase = "test.ior";
22 my $server_iorfile = $server->LocalFile ($iorbase);
23 $server->DeleteFile($iorbase);
25 $SV = $server->CreateProcess ("server", "-ORBdebuglevel $debug_level");
27 print STDERR "\n\n==== Running bug 3663 regression test\n";
29 $server_status = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
31 if ($server_status != 0) {
32 print STDERR "ERROR: Bug_3663_Regression returned $server_status\n";
33 $status = 1;
36 $server->DeleteFile($iorbase);
38 exit $status;