More tests update
[ACE_TAO.git] / TAO / tests / Bug_3630_Regression / run_test.pl
blob9ae02a9c5ea0212a6dca7d1bf398c3c2765fef8d
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;
9 use strict;
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";
20 exit 1;
23 if ($server->PutFile ($srvconf2) == -1) {
24 print STDERR "ERROR: cannot set file <$server_svcconf2>\n";
25 exit 1;
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";
34 exit 1;
37 $server_status = $SV->WaitKill ($server->ProcessStartWaitInterval());
38 my $status = 0;
39 if ($server_status != 0) {
40 print STDERR "ERROR: server returned $server_status\n";
41 $status = 1;
44 exit $status;