changeset 31771:5e92ba77793c

test-serve: disable unfixable tests on Windows These tests would run if hghave.has_serve() were enabled on Windows. Windows has no issue allowing an unpriviledged process to open port 13, so it doesn't abort. The other tests are related to how MSYS tries to be helpful and converts Unix constructs to the Windows equivalent. There isn't any way to disable this behavior, though it supposedly doesn't happen if the exe is linked against the MSYS library.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 02 Apr 2017 01:51:07 -0400
parents 3ed26ba54685
children 3433bf56b768
files tests/test-hgweb-commands.t tests/test-pull.t tests/test-serve.t
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t	Sun Apr 02 01:28:05 2017 -0400
+++ b/tests/test-hgweb-commands.t	Sun Apr 02 01:51:07 2017 -0400
@@ -2222,6 +2222,11 @@
 
   $ cat errors.log
 
+MSYS changes environment variables starting with '/' into 'C:/MinGW/msys/1.0',
+which changes the status line to '400 no such method: C:'.
+
+#if no-msys
+
 bookmarks view doesn't choke on bookmarks on secret changesets (issue3774)
 
   $ hg phase -fs 4
@@ -2387,7 +2392,7 @@
   node:        (0, 6) (color 1)
   
   
-
+#endif
 
 
   $ cd ..
--- a/tests/test-pull.t	Sun Apr 02 01:28:05 2017 -0400
+++ b/tests/test-pull.t	Sun Apr 02 01:51:07 2017 -0400
@@ -88,7 +88,11 @@
   abort: file:// URLs can only refer to localhost
   [255]
 
+MSYS changes 'file:' into 'file;'
+
+#if no-msys
   $ hg pull -q file:../test  # no-msys
+#endif
 
 It's tricky to make file:// URLs working on every platform with
 regular shell commands.
--- a/tests/test-serve.t	Sun Apr 02 01:28:05 2017 -0400
+++ b/tests/test-serve.t	Sun Apr 02 01:51:07 2017 -0400
@@ -45,7 +45,7 @@
 
 With -v and -p daytime (should fail because low port)
 
-#if no-root
+#if no-root no-windows
   $ KILLQUIETLY=Y
   $ hgserve -p daytime
   abort: cannot start server at 'localhost:13': Permission denied