Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Bug_2074_Regression / run_test.pl
blobc7631ad0802880d865ed7b62a0ffb22bb159ac11
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($prog) = 'test';
21 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
23 $SV = $server->CreateProcess ($prog, "-ORBdebuglevel $debug_level");
25 $status_server = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval() + 110);
27 if ($status_server != 0) {
28 print STDERR "ERROR: $prog returned $status_server\n";
29 $status = 1;
32 exit $status;