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
;
11 my $server = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
13 my $srvconf = "TAO Conf File.conf";
14 my $srvconf2 = "TAO_Conf_File.conf";
15 my $server_svcconf = $server->LocalFile ($srvconf);
16 my $server_svcconf2 = $server->LocalFile ($srvconf2);
18 if ($server->PutFile ($srvconf) == -1) {
19 print STDERR
"ERROR: cannot set file <$server_svcconf>\n";
23 if ($server->PutFile ($srvconf2) == -1) {
24 print STDERR
"ERROR: cannot set file <$server_svcconf2>\n";
28 my $SV = $server->CreateProcess ("server");
30 my $server_status = $SV->Spawn ();
32 if ($server_status != 0) {
33 print STDERR
"ERROR: server returned $server_status\n";
37 $server_status = $SV->WaitKill ($server->ProcessStartWaitInterval());
39 if ($server_status != 0) {
40 print STDERR
"ERROR: server returned $server_status\n";