diff options
author | Yang Tse <yangsita@gmail.com> | 2010-01-19 02:01:01 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-01-19 02:01:01 +0000 |
commit | 3afe2b65b645f137437e776a6e0290a1e4e661cf (patch) | |
tree | e1b77bc4177509eac0504342aaafe15855f358d8 | |
parent | afdc3d81e9b9ee02ba428f97fe3c38c24c5b51db (diff) | |
download | curl-3afe2b65b645f137437e776a6e0290a1e4e661cf.tar.gz |
prevent %runcert hash growth when clearing items
-rwxr-xr-x | tests/runtests.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 2b74f6b47..d08e17714 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -632,9 +632,9 @@ sub stopserver { foreach my $server (@killservers) { if($run{$server}) { $pidlist .= "$run{$server} "; - $runcert{$server} = 0; $run{$server} = 0; } + $runcert{$server} = 0 if($runcert{$server}); } killpid($verbose, $pidlist); # @@ -2542,9 +2542,9 @@ sub singletest { foreach my $server (@killservers) { if($run{$server}) { $pidlist .= "$run{$server} "; - $runcert{$server} = 0; $run{$server} = 0; } + $runcert{$server} = 0 if($runcert{$server}); } killpid($verbose, $pidlist); # @@ -2920,9 +2920,9 @@ sub stopservers { } } $pidlist .= "$run{$server} "; - $runcert{$server} = 0; $run{$server} = 0; } + $runcert{$server} = 0 if($runcert{$server}); } killpid($verbose, $pidlist); # |