changeset 16974:01ed5bb5cd41

tests: use hghave eol-in-paths to test for support for ':' in filenames and " " It is an approximation but seems to work ok ... and testing that 'foo:bar' creates a real file and not just a resource fork is not completely trivial.
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 15 Jun 2012 00:02:27 +0200
parents 3d71807c3a48
children 921458360270
files tests/test-add.t tests/test-init.t
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-add.t	Fri Jun 15 00:02:27 2012 +0200
+++ b/tests/test-add.t	Fri Jun 15 00:02:27 2012 +0200
@@ -51,6 +51,11 @@
   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 @@
   $ 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
 
--- a/tests/test-init.t	Fri Jun 15 00:02:27 2012 +0200
+++ b/tests/test-init.t	Fri Jun 15 00:02:27 2012 +0200
@@ -136,7 +136,7 @@
   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 " "