mirror of
https://github.com/mirror/wget.git
synced 2025-01-27 12:50:13 +08:00
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:
parent
478a584609
commit
358a3c330f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user