Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / ORB_Local_Config / Bug_3049 / run_test.pl
blob742d6b9495ddab27b1a35a1e1ad9eff97e7cc301
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";
11 $server->AddLibPath ('../lib');
13 my $conffilebase = "a.conf";
14 my $conffile = $server->LocalFile ($conffilebase);
16 # copy the configuation file
17 if ($server->PutFile ($conffilebase) == -1) {
18 print STDERR "ERROR: cannot set file <$conffile>\n";
19 return 1;
22 $SV = $server->CreateProcess ("Test");
24 $test = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
26 if ($test != 0) {
27 print STDERR "ERROR: test returned $test\n";
28 exit 1;
31 exit 0;