1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
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";
12 # add dynamically loaded runtime lib dependencies
13 $server->AddRuntimeLibrary ('TAO_PI');
14 $server->AddRuntimeLibrary ('TAO_CodecFactory');
16 $orb_log = "ORBLog.log";
17 $orb_logfile = $server->LocalFile ($orb_log);
18 $server->DeleteFile ($orb_log);
20 $SV = $server->CreateProcess ("server", "-l $orb_logfile");
24 if ($server->WaitForFileTimed ($orb_log,
25 $server->ProcessStartWaitInterval()) == -1) {
26 print STDERR
"ERROR: cannot find file <$orb_logfile>\n";
27 $SV->Kill (); $SV->TimedWait (1);
31 $SV->WaitKill ($server->ProcessStopWaitInterval());