diff --git a/tests/test-add.t b/tests/test-add.t
--- a/tests/test-add.t
+++ b/tests/test-add.t
@@ -51,6 +51,11 @@ should fail
   A a
   A b
   A con.xml
+  $ hg forget con.xml
+  $ rm con.xml
+#endif
+
+#if eol-in-paths
   $ echo bla > 'hello:world'
   $ hg --config ui.portablefilenames=abort add
   adding hello:world
@@ -59,14 +64,12 @@ should fail
   $ hg st
   A a
   A b
-  A con.xml
   ? hello:world
   $ hg --config ui.portablefilenames=ignore add
   adding hello:world
   $ hg st
   A a
   A b
-  A con.xml
   A hello:world
 #endif
 
diff --git a/tests/test-init.t b/tests/test-init.t
--- a/tests/test-init.t
+++ b/tests/test-init.t
@@ -136,7 +136,7 @@ check names for repositories (clashes wi
   hg init "ssh"... ok
   hg init "static-http"... ok
   hg init "with space"... ok
-#if no-windows
+#if eol-in-paths
 /* " " is not a valid name for a directory on Windows */
   $ hg init " "
   $ test -d " "