Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / RTCORBA / Collocation / run_test.pl
blob742c93117d6d60ec87d8aa1cd10e696c8adfd570
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 print STDERR "\n********** RTCORBA Collocation Unit Test **********\n\n";
12 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
14 $T = $server->CreateProcess ("Collocation");
16 $test = $T->SpawnWaitKill($server->ProcessStartWaitInterval ());
17 if ($test == 2) {
18 # Mark as no longer running to avoid errors on exit.
19 $T->{RUNNING} = 0;
20 } else {
21 if ($test != 0) {
22 print STDERR "ERROR: test returned $test\n";
23 exit 1;
27 exit 0;