mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04: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;
|
my $index = <<EOF;
|
||||||
<html>
|
<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;
|
my $expected_error_code = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user