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 $synch_with_server_option = "";
21 if ($ARGV[0] eq 'synch_with_server') {
22 $synch_with_server_option = "-s";
24 elsif ($ARGV[0] eq '') {
28 print STDERR
"ERROR: invalid parameter $ARGV[0] \n";
32 my $server = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
34 $SV = $server->CreateProcess ("server_main", "-ORBdebuglevel $debug_level $synch_with_server_option");
36 $server_status = $SV->Spawn ();
38 if ($server_status != 0) {
39 print STDERR
"ERROR: server returned $server_status\n";
43 $server_status = $SV->WaitKill ($server->ProcessStopWaitInterval() + 45);
45 if ($server_status != 0) {
46 print STDERR
"ERROR: server returned $server_status\n";