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
;
18 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);
24 $SV = $server->CreateProcess ("server", "-ORBdebuglevel $debug_level -o $server_iorfile");
26 $server_status = $SV->Spawn ();
28 if ($server_status != 0) {
29 print STDERR
"ERROR: server returned $server_status\n";
33 if ($server->WaitForFileTimed ($iorbase,
34 $server->ProcessStartWaitInterval()) == -1) {
35 print STDERR
"ERROR: cannot find file <$server_iorfile>\n";
36 $SV->Kill (); $SV->TimedWait (1);
40 $server_status = $SV->WaitKill ($server->ProcessStartWaitInterval());
42 if ($server_status != 0) {
43 print STDERR
"ERROR: server returned $server_status\n";
47 $server->DeleteFile($iorbase);