test-hgignore: conditionalize an illegal Windows filename
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 13 Dec 2015 15:36:20 -0500
changeset 27381 988367ac2a2a
parent 27380 c7129ed280b8
child 27382 de7bcbc68042
test-hgignore: conditionalize an illegal Windows filename
tests/test-hgignore.t
--- a/tests/test-hgignore.t	Sat Dec 12 21:36:21 2015 -0600
+++ b/tests/test-hgignore.t	Sun Dec 13 15:36:20 2015 -0500
@@ -57,7 +57,10 @@
 
 Ensure that comments work:
 
-  $ touch 'foo#bar' 'quux#' 'baz\#wat'
+  $ touch 'foo#bar' 'quux#'
+#if no-windows
+  $ touch 'baz\#wat'
+#endif
   $ cat <<'EOF' >> .hgignore
   > # full-line comment
   >   # whitespace-only comment line
@@ -70,7 +73,10 @@
   $ hg status
   A dir/b.o
   ? .hgignore
-  $ rm 'foo#bar' 'quux#' 'baz\#wat'
+  $ rm 'foo#bar' 'quux#'
+#if no-windows
+  $ rm 'baz\#wat'
+#endif
 
 Check it does not ignore the current directory '.':