Skip to content

Commit

Permalink
temporary debug trace for ftp server satrtup failure on testcase #100
Browse files Browse the repository at this point in the history
  • Loading branch information
yangtse committed May 12, 2009
1 parent 80d2df7 commit 86f043a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/runtests.pl
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ BEGIN
my $torture;
my $tortnum;
my $tortalloc;
my $testnumrequiringthis;

# open and close each time to allow removal at any time
sub logmsg {
Expand Down Expand Up @@ -988,6 +989,7 @@ sub runftpserver {
# it is NOT alive
logmsg "RUN: failed to start the FTP$id$nameext server\n";
stopserver("$pid2");
displaylogs($testnumrequiringthis) if($testnumrequiringthis == 100);
$doesntrun{$pidfile} = 1;
return (0,0);
}
Expand All @@ -998,6 +1000,7 @@ sub runftpserver {
logmsg "RUN: FTP$id$nameext server failed verification\n";
# failed to talk to it properly. Kill the server and return failure
stopserver("$ftppid $pid2");
displaylogs($testnumrequiringthis) if($testnumrequiringthis == 100);
$doesntrun{$pidfile} = 1;
return (0,0);
}
Expand Down Expand Up @@ -1740,6 +1743,8 @@ sub singletest {
my %feature;
my $cmd;

$testnumrequiringthis = $testnum;

# load the test case file definition
if(loadtest("${TESTDIR}/test${testnum}")) {
if($verbose) {
Expand Down

0 comments on commit 86f043a

Please sign in to comment.