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 $target = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
12 $iorfile = $target->LocalFile ("server.ior");
13 $target->DeleteFile ($iorfile);
16 $SV = $target->CreateProcess ("server", " -o $iorfile");
17 $CL = $target->CreateProcess ("client", " -k file://$iorfile");
21 if ($target->WaitForFileTimed($iorfile, $target->ProcessStartWaitInterval ()) == -1) {
22 print STDERR
"ERROR: cannot find file <$iorfile>\n";
23 $SV->Kill (); $SV->TimedWait (1);
27 $client = $CL->SpawnWaitKill ($target->ProcessStartWaitInterval () + 585);
30 print STDERR
"ERROR: client returned $client\n";
34 $server = $SV->WaitKill ($target->ProcessStopWaitInterval ());
37 print STDERR
"ERROR: server returned $server\n";
41 $target->GetStderrLog();
42 $target->DeleteFile ($iorfile);