Skip to content
Snippets Groups Projects
Commit 86742e83 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

tests that were not run due to restraints (the netrc-tests) were counted

as skipped twice, and thus the total number of tests appeared wrong
parent 173b35ea
No related branches found
No related tags found
No related merge requests found
......@@ -445,6 +445,15 @@ sub singletest {
return -1;
}
my $serverproblem = serverfortest($testnum);
if($serverproblem) {
# there's a problem with the server, don't run
# this particular server, but count it as "skipped"
$skipped++;
return -1;
}
{
my %hash = getpartattr("client");
my $requires = $hash{'requires'};
......@@ -460,7 +469,7 @@ sub singletest {
}else {
print "$testnum requires $requires, which is not set; skipping\n";
$skipped++;
return 0; # look successful
return -1; # return test-not-run
}
}
}
......@@ -1042,20 +1051,14 @@ my $total=0;
foreach $testnum (split(" ", $TESTCASES)) {
my $serverproblem = serverfortest($testnum);
if($serverproblem) {
# there's a problem with the server, don't run
# this particular server, but count it as "skipped"
$skipped++;
my $error = singletest($testnum);
if(-1 == $error) {
# not a test we can run
next;
}
my $error = singletest($testnum);
if(-1 != $error) {
# valid test case number
$total++;
}
$total++; # number of tests we've run
if($error>0) {
$failed.= "$testnum ";
if(!$anyway) {
......@@ -1065,7 +1068,7 @@ foreach $testnum (split(" ", $TESTCASES)) {
}
}
elsif(!$error) {
$ok++;
$ok++; # successful test counter
}
# loop for next test
......
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