diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-02-07 14:44:33 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-02-07 14:44:33 +0000 |
commit | 9d8ad161a23fb7b26ae103a2d06579e2ab17be8a (patch) | |
tree | fcad4d8d0d18d1173fb88ce9e1ce361b1dd3415f | |
parent | 473781ca0092dc24308063e72e83fe912e8a4363 (diff) | |
download | ATCD-9d8ad161a23fb7b26ae103a2d06579e2ab17be8a.tar.gz |
ChangeLogTag: Mon Feb 7 14:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-rwxr-xr-x | TAO/orbsvcs/tests/Trading/run_test.pl | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/TAO/orbsvcs/tests/Trading/run_test.pl b/TAO/orbsvcs/tests/Trading/run_test.pl index 2ee0d0dce60..b6057f38645 100755 --- a/TAO/orbsvcs/tests/Trading/run_test.pl +++ b/TAO/orbsvcs/tests/Trading/run_test.pl @@ -22,7 +22,9 @@ $E = new PerlACE::Process ("export_test", $I = new PerlACE::Process ("import_test", "-ORBInitRef TradingService=file://$ior -quiet"); -$TS->Spawn (); +if ($TS->Spawn () == -1) { + exit 1; +} if (PerlACE::waitforfile_timed ($ior, $sleeptime) == -1) { print STDERR "ERROR: waiting for trading service IOR file\n"; @@ -30,12 +32,15 @@ if (PerlACE::waitforfile_timed ($ior, $sleeptime) == -1) { exit 1; } -$E->Spawn (); +if ($E->Spawn () == -1) { + $TS->Kill (); + exit 1; +} if (PerlACE::waitforfile_timed ($ready_file, 120) == -1) { print STDERR "ERROR: waiting for the export test to finish\n"; - $E->Kill (); - $TS->Kill (); + $E->Kill (); + $TS->Kill (); exit 1; } |