Let Test-k survive on CygWin and Windows

* tests/Test-k.px: Use --restrict-file-names for CygWin/Windows
  filename requirements.
This commit is contained in:
Tim Rühsen 2015-12-11 11:43:40 +01:00
parent 478a584609
commit 358a3c330f
1 changed files with 8 additions and 1 deletions

View File

@ -7,6 +7,8 @@ use HTTPTest;
###############################################################################
my $osname = $^O;
print "OS=$osname\n";
my $index = <<EOF;
<html>
@ -61,7 +63,12 @@ my %urls = (
},
);
my $cmdline = $WgetTest::WGETPATH . " -k -r -nH http://localhost:{{port}}/index.html";
my $restrict = "unix";
if ($osname eq "MSWin32") {
$restrict = "windows";
}
my $cmdline = $WgetTest::WGETPATH . " -k -r -nH --restrict-file-names=$restrict http://localhost:{{port}}/index.html";
my $expected_error_code = 0;