changeset 27381:988367ac2a2a

test-hgignore: conditionalize an illegal Windows filename
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 13 Dec 2015 15:36:20 -0500
parents c7129ed280b8
children de7bcbc68042
files tests/test-hgignore.t
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 '.':