Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Object_Loader / run_test.pl
blob8c2852622dba9a39537e3722238c249c9616c717
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 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
12 my $conffilebase = "svc.conf";
13 my $conffile = $server->LocalFile ($conffilebase);
15 # copy the configuation files
16 if ($server->PutFile ($conffilebase) == -1) {
17 print STDERR "ERROR: cannot set file <$conffile>\n";
18 return 1;
20 if ($server->PutFile ($conffilebase.'.xml') == -1) {
21 print STDERR "ERROR: cannot set file <$conffile".'.xml'.">\n";
22 return 1;
25 $SV = $server->CreateProcess ("driver");
27 $test = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
29 if ($test != 0) {
30 print STDERR "ERROR: test returned $test\n";
31 exit 1;
34 exit 0;