Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / Bug_3559_Regression / run_test.pl
blobd4ccaa41e26b37a5b23a1bd0ef0c59c723a00c77
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 # add dynamically loaded runtime lib dependencies
13 $server->AddRuntimeLibrary ('TAO_PI');
14 $server->AddRuntimeLibrary ('TAO_CodecFactory');
16 $orb_log = "ORBLog.log";
17 $orb_logfile = $server->LocalFile ($orb_log);
18 $server->DeleteFile ($orb_log);
20 $SV = $server->CreateProcess ("server", "-l $orb_logfile");
22 $SV->Spawn ();
24 if ($server->WaitForFileTimed ($orb_log,
25 $server->ProcessStartWaitInterval()) == -1) {
26 print STDERR "ERROR: cannot find file <$orb_logfile>\n";
27 $SV->Kill (); $SV->TimedWait (1);
28 exit 1;
31 $SV->WaitKill ($server->ProcessStopWaitInterval());
33 exit 0;