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
;
30 my $server = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
31 my $client = PerlACE
::TestTarget
::create_target
(2) || die "Create target 2 failed\n";
34 $SV = $server->CreateProcess ("server",
35 "-c $cache_size -ORBdebuglevel $debug_level -ORBListenEndpoints iiop://localhost:$port");
36 $CL = $client->CreateProcess ("client",
37 "-c $cache_size -p $port -ORBdebuglevel $debug_level");
39 $server_status = $SV->Spawn ();
41 if ($server_status != 0) {
42 print STDERR
"ERROR: server returned $server_status\n";
46 # just for all security...
49 $client_status = $CL->SpawnWaitKill ($client->ProcessStartWaitInterval());
51 if ($client_status != 0) {
52 print STDERR
"ERROR: client returned $client_status\n";
56 $server_status = $SV->WaitKill ($server->ProcessStopWaitInterval());
58 if ($server_status != 0) {
59 print STDERR
"ERROR: server returned $server_status\n";