Use =default for skeleton copy constructor
[ACE_TAO.git] / TAO / tests / Server_Port_Zero / run_test.pl
blobe530c5cff6b15474480bcf0a70629b0dcf2e4142
1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
3 if 0;
5 # -*- perl -*-
7 use lib "$ENV{ACE_ROOT}/bin";
8 use PerlACE::TestTarget;
10 $debug_level = '0';
12 foreach $i (@ARGV) {
13 if ($i eq '-debug') {
14 $debug_level = '10';
18 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
19 my $iorbase = "server.ior";
20 my $server_iorfile = $server->LocalFile ($iorbase);
21 $server->DeleteFile($iorbase);
22 $status = 0;
24 $SV = $server->CreateProcess ("server", "-ORBdebuglevel $debug_level -o $server_iorfile");
26 $server_status = $SV->Spawn ();
28 if ($server_status != 0) {
29 print STDERR "ERROR: server returned $server_status\n";
30 exit 1;
33 if ($server->WaitForFileTimed ($iorbase,
34 $server->ProcessStartWaitInterval()) == -1) {
35 print STDERR "ERROR: cannot find file <$server_iorfile>\n";
36 $SV->Kill (); $SV->TimedWait (1);
37 exit 1;
40 $server_status = $SV->WaitKill ($server->ProcessStartWaitInterval());
42 if ($server_status != 0) {
43 print STDERR "ERROR: server returned $server_status\n";
44 $status = 1;
47 $server->DeleteFile($iorbase);
49 exit $status;