Skip to content

Commit

Permalink
Slack time reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
yangtse committed Dec 19, 2009
1 parent aeec8e0 commit 010fe5a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/ftp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ sub killpid {

# Allow all signalled processes five seconds to gracefully die.
if(defined(@signalled)) {
my $eighths = 40;
while($eighths--) {
my $twentieths = 5 * 20;
while($twentieths--) {
for(my $i = scalar(@signalled) - 1; $i >= 0; $i--) {
my $pid = $signalled[$i];
if(!kill(0, $pid)) {
Expand All @@ -132,7 +132,7 @@ sub killpid {
}
}
last if(not scalar(@signalled));
select(undef, undef, undef, 0.125);
select(undef, undef, undef, 0.05);
}
}

Expand Down
12 changes: 6 additions & 6 deletions tests/runtests.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2251,9 +2251,9 @@ sub singletest {
# of time until the server removes it, or the given time expires.

if($serverlogslocktimeout) {
my $lockretry = $serverlogslocktimeout * 8;
my $lockretry = $serverlogslocktimeout * 20;
while((-f $SERVERLOGS_LOCK) && $lockretry--) {
select(undef, undef, undef, 0.125);
select(undef, undef, undef, 0.05);
}
if(($lockretry < 0) &&
($serverlogslocktimeout >= $defserverlogslocktimeout)) {
Expand Down Expand Up @@ -3421,7 +3421,7 @@ sub displaylogs {
logmsg "$txt\n";
}

$counter = 25;
$counter = 10;
logmsg "\nTest definition reading and preparation time per test ".
sprintf("(%s)...\n\n", (not $fullstats)?"top $counter":"full");
logmsg "-time- test\n";
Expand All @@ -3441,7 +3441,7 @@ sub displaylogs {
logmsg "$txt\n";
}

$counter = 25;
$counter = 15;
logmsg "\nTest server logs lock removal time per test ".
sprintf("(%s)...\n\n", (not $fullstats)?"top $counter":"full");
logmsg "-time- test\n";
Expand All @@ -3451,7 +3451,7 @@ sub displaylogs {
logmsg "$txt\n";
}

$counter = 25;
$counter = 10;
logmsg "\nTest results verification time per test ".
sprintf("(%s)...\n\n", (not $fullstats)?"top $counter":"full");
logmsg "-time- test\n";
Expand All @@ -3462,7 +3462,7 @@ sub displaylogs {
}

$counter = 50;
logmsg "\nAggregated time per test ".
logmsg "\nTotal time per test ".
sprintf("(%s)...\n\n", (not $fullstats)?"top $counter":"full");
logmsg "-time- test\n";
logmsg "------ ----\n";
Expand Down

0 comments on commit 010fe5a

Please sign in to comment.