diff options
Diffstat (limited to 'TAO/tests/Param_Test/run_test.pl')
-rwxr-xr-x | TAO/tests/Param_Test/run_test.pl | 43 |
1 files changed, 18 insertions, 25 deletions
diff --git a/TAO/tests/Param_Test/run_test.pl b/TAO/tests/Param_Test/run_test.pl index 9b3b96bc124..e70233ece97 100755 --- a/TAO/tests/Param_Test/run_test.pl +++ b/TAO/tests/Param_Test/run_test.pl @@ -76,35 +76,28 @@ foreach $type (@types) { print STDERR "==== Testing $type === wait....\n"; - $server = $SV->Spawn (); + $SV->Spawn (); - if ($server != 0) { - print STDERR "ERROR: server returned $server\n"; + if (PerlACE::waitforfile_timed ($iorfile, 15) == -1) { + print STDERR "ERROR: cannot find file <$iorfile>\n"; + $SV->Kill (); + exit 1; + } + + $CL->Arguments ("$debug -f $iorfile -i $invocation -t $type -n $num -x"); + + $client = $CL->SpawnWaitKill (60); + + if ($client != 0) { + print STDERR "ERROR: client returned $client\n"; $status = 1; } - else - { - if (PerlACE::waitforfile_timed ($iorfile, 15) == -1) { - print STDERR "ERROR: cannot find file <$iorfile>\n"; - $SV->Kill (); - exit 1; - } - - $CL->Arguments ("$debug -f $iorfile -i $invocation -t $type -n $num -x"); - - $client = $CL->SpawnWaitKill (60); - - if ($client != 0) { - print STDERR "ERROR: client returned $client\n"; - $status = 1; - } - - $server = $SV->WaitKill (10); + + $server = $SV->WaitKill (10); - if ($server != 0) { - print STDERR "ERROR: server returned $server\n"; - $status = 1; - } + if ($server != 0) { + print STDERR "ERROR: server returned $server\n"; + $status = 1; } unlink $iorfile; |