summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2014-06-16 16:32:45 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2014-06-16 16:32:45 +0000
commit6419cbaee099b415971787a48044df842b3816e1 (patch)
tree04b048cdc27091d481c4bb3f0ccb5f1a4a712b87 /TAO/orbsvcs/tests/ImplRepo
parent63f2a8735ac1f909c7439caca0c5ae5d75fed1e3 (diff)
downloadATCD-6419cbaee099b415971787a48044df842b3816e1.tar.gz
Mon Jun 16 16:30:40 UTC 2014 Phil Mesnier <mesnier_p@ociweb.com>
* orbsvcs/tests/ImplRepo/servers_list/run_test_ft.pl: One more windows fix. A delay is required after killing primary locator to avoid comm failures.
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo')
-rwxr-xr-xTAO/orbsvcs/tests/ImplRepo/servers_list/run_test_ft.pl14
1 files changed, 11 insertions, 3 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/servers_list/run_test_ft.pl b/TAO/orbsvcs/tests/ImplRepo/servers_list/run_test_ft.pl
index bb0c84f8630..f99e68c7a0c 100755
--- a/TAO/orbsvcs/tests/ImplRepo/servers_list/run_test_ft.pl
+++ b/TAO/orbsvcs/tests/ImplRepo/servers_list/run_test_ft.pl
@@ -311,11 +311,12 @@ sub list_active_servers
$TI->Arguments ("$ti_initref list $list_options");
# Redirect output so we can count number of lines in output
redirect_output();
- $result = $TI->SpawnWaitKill ($ti->ProcessStartWaitInterval());
+ $TI_status = $TI->SpawnWaitKill ($ti->ProcessStartWaitInterval());
my $list_time = time() - $start_time;
restore_output();
if ($TI_status != 0) {
- return kill_imr ("tao_imr list returned $TI_status");
+ kill_imr ("tao_imr list returned $TI_status");
+ return -1;
}
open (FILE, $stderr_file) or die "Can't open $stderr_file: $!";
$active_servers = 0;
@@ -356,12 +357,19 @@ sub servers_list_test
print "\nList of active servers from primary\n";
$active_servers_before_kill = list_active_servers("-a");
-
+ if ($active_servers_before_kill < 0) {
+ return 1;
+ }
print "\nKilling primary IMR Locator\n";
$IMR->Kill (); $IMR->TimedWait (1);
+ sleep (2);
print "\nList of active servers from backup\n";
$active_servers_after_kill = list_active_servers("-a");
+ if ($active_servers_after_kill < 0) {
+ return 1;
+ }
+
if ($active_servers_after_kill != $active_servers_before_kill) {
print STDERR
"ERROR: Excepted list of active servers after killing ".