2 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
3 & eval 'exec perl -S $0 $argv:q'
7 use lib
"$ACE_ROOT/bin";
8 use PerlACE
::TestTarget
;
10 $iorfile = "server.ior";
12 my $server = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
13 my $client = PerlACE
::TestTarget
::create_target
(2) || die "Create target 2 failed\n";
15 $server->DeleteFile($iorfile);
17 my $server_iorfile = $server->LocalFile ($iorfile);
19 $S = $server->CreateProcess("MessengerServer");
22 if ($server->WaitForFileTimed ($iorfile, $server->ProcessStartWaitInterval()) == -1) {
23 print STDERR
"ERROR: cannot find file <$server_iorfile>\n";
28 $C = $client->CreateProcess("MessengerClient");
31 $CRET = $C->WaitKill($client->ProcessStartWaitInterval());
36 $server->DeleteFile($iorfile);
39 print STDERR
"ERROR: Client returned <$CRET>\n";