Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Time_Policy_Custom / run_test.pl
blob3116372dbae326b3e099250016b4765c7dbc28f4
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 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
13 $server_debug_level = '0';
15 foreach $i (@ARGV) {
16 if ($i eq '-debug') {
17 $server_debug_level = '10';
21 $SV = $server->CreateProcess ("test", "-s -ORBdebuglevel $server_debug_level");
23 $server_status = $SV->Spawn ();
25 if ($server_status != 0) {
26 print STDERR "ERROR: server returned $server_status\n";
27 exit 1;
30 $server_status = $SV->WaitKill ($server->ProcessStopWaitInterval()*2);
32 if ($server_status != 0) {
33 print STDERR "ERROR: server returned $server_status\n";
34 $status = 1;
37 exit $status;