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
;
19 my $server = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
20 my $client = PerlACE
::TestTarget
::create_target
(2) || die "Create target 2 failed\n";
22 my $server_port = 23456;
23 my $mcast_port = 12345;
25 $SV = $server->CreateProcess ("server", "-a [ff01::1]:12345 -ORBEndpoint iiop://[::1]:23456");
26 $CL = $client->CreateProcess ("client", "-ORBInitRef MCASTServer=mcast://[ff01::1]:12345::2/MCASTServer");
27 $server_status = $SV->Spawn ();
29 if ($server_status != 0) {
30 print STDERR
"ERROR: server returned $server_status\n";
36 $client_status = $CL->SpawnWaitKill ($client->ProcessStartWaitInterval());
38 if ($client_status != 0) {
39 print STDERR
"ERROR: client returned $client_status\n";
43 $server_status = $SV->TerminateWaitKill ($server->ProcessStopWaitInterval());
45 if ($server_status != 0) {
46 print STDERR
"ERROR: server returned $server_status\n";