Continued changes from peer review
[ACE_TAO.git] / TAO / tests / Bug_2909_Regression / run_test.pl
blob0b5ea6d55eb14d2e986502206c388b889c91157f
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 $debug_level = '0';
11 foreach $i (@ARGV) {
12 if ($i eq '-debug') {
13 $debug_level = '1';
17 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
19 my $iorbase = "server.ior";
20 my $server_iorfile = $server->LocalFile ($iorbase);
21 $server->DeleteFile($iorbase);
23 $SV = $server->CreateProcess ("client", "-ORBdebuglevel $debug_level -k $server_iorfile");
25 $test = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
27 if ($test != 0) {
28 print STDERR "ERROR: test returned $test\n";
29 exit 1;
32 $server->DeleteFile($iorbase);
34 exit 0;