Hi,

Test-k fails on Cygwin with LC_ALL=C (which is the default for 'make check').

With this patch the test works on CygWin and on Linux.

Here is a patch that *should* fix it also for 'plain' MS Windows.
Could anyone test this on Windows (without CygWin) ?

Regards, Tim
From 2c952b4d62492ee50ca7d2caa6edee4f0cfbd3e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim Rühsen?= <[email protected]>
Date: Fri, 11 Dec 2015 11:43:40 +0100
Subject: [PATCH] Let Test-k survive on CygWin and Windows

* tests/Test-k.px: Use --restrict-file-names for CygWin/Windows
  filename requirements.
---
 tests/Test-k.px | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tests/Test-k.px b/tests/Test-k.px
index 9005c5f..ce114d7 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 = <<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;

--
2.6.4

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to