Skip to content
Snippets Groups Projects
Commit 86f043a6 authored by Yang Tse's avatar Yang Tse
Browse files

temporary debug trace for ftp server satrtup failure on testcase #100

parent 80d2df77
No related branches found
No related tags found
No related merge requests found
......@@ -231,6 +231,7 @@ my %doesntrun; # servers that don't work, identified by pidfile
my $torture;
my $tortnum;
my $tortalloc;
my $testnumrequiringthis;
# open and close each time to allow removal at any time
sub logmsg {
......@@ -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);
}
......@@ -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);
}
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment