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
;
12 my $client = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
14 my $iorbase = "test.ior";
15 my $client_iorfile = $client->LocalFile ($iorbase);
17 $client->DeleteFile($iorbase);
19 $CL = $client->CreateProcess ("client", "-k $client_iorfile");
21 $client_status = $CL->Spawn ();
23 if ($client_status != 0) {
24 print STDERR
"ERROR: client returned $client_status\n";
28 if ($client->WaitForFileTimed ($iorbase,
29 $client->ProcessStartWaitInterval()) == -1) {
30 print STDERR
"ERROR: cannot find file <$client_iorfile>\n";
31 $CL->Kill (); $CL->TimedWait (1);
35 $client_status = $CL->WaitKill ($client->ProcessStopWaitInterval ());
37 if ($client_status != 0) {
38 print STDERR
"ERROR: client returned $client_status\n";
42 $client->DeleteFile($iorbase);