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 $server = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
14 $port = $server->RandomPort ();
16 $SV1 = $server->CreateProcess ("server", "-ORBEndpoint iiop://:$port/portspan=2");
17 $SV2 = $server->CreateProcess ("server", "-ORBEndpoint iiop://:$port/portspan=2");
18 $SV3 = $server->CreateProcess ("server", "-ORBEndpoint iiop://:$port/portspan=2");
20 $server_status = $SV1->Spawn ();
22 if ($server_status != 0) {
23 print STDERR
"ERROR: server returned $server_status\n";
27 $server_status = $SV2->Spawn ();
29 if ($server_status != 0) {
30 print STDERR
"ERROR: server returned $server_status\n";
35 $server_status = $SV3->Spawn ();
36 if ($server_status == 0) {
37 print STDERR
"ERROR: Last server didn't fail! Err:$server_status\n";
48 print STDOUT
"Portspan test completed successfully.\n";