diff --git a/tests/Test-k.px b/tests/Test-k.px index 9005c5fa..ce114d7a 100755 --- a/tests/Test-k.px +++ b/tests/Test-k.px @@ -7,6 +7,8 @@ use HTTPTest; ############################################################################### +my $osname = $^O; +print "OS=$osname\n"; my $index = < @@ -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;