diff options
Diffstat (limited to 'tests/RTCORBA/Server_Declared/run_test.pl')
-rwxr-xr-x | tests/RTCORBA/Server_Declared/run_test.pl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/RTCORBA/Server_Declared/run_test.pl b/tests/RTCORBA/Server_Declared/run_test.pl index 777edcbd732..05bf789d0cd 100755 --- a/tests/RTCORBA/Server_Declared/run_test.pl +++ b/tests/RTCORBA/Server_Declared/run_test.pl @@ -64,15 +64,15 @@ if ($server_status != 0) { if ($server->WaitForFileTimed ($iorbase2, $server->ProcessStartWaitInterval ()) == -1) { - $server_status = $SV->TimedWait (1); - if ($server_status == 2) { + $server_status = $SV->TimedWait (1); + if ($server_status == 2) { # Mark as no longer running to avoid errors on exit. - $SV->{RUNNING} = 0; - exit $status; - } - else { - print STDERR "ERROR: cannot find file <$server_iorfile2>\n"; - $SV->Kill (); + $SV->{RUNNING} = 0; + exit $status; + } + else { + print STDERR "ERROR: cannot find file <$server_iorfile2>\n"; + $SV->Kill (); exit 1; } } |