test-command-template: enable for Windows
authorAdrian Buehlmann <adrian@cadifra.com>
Mon, 11 Jun 2012 19:18:36 +0200
changeset 16917 bebe376b938f
parent 16916 c76175cd1415
child 16918 b112e265b78a
test-command-template: enable for Windows
tests/test-command-template.t
--- a/tests/test-command-template.t	Mon Jun 11 19:04:18 2012 +0200
+++ b/tests/test-command-template.t	Mon Jun 11 19:18:36 2012 +0200
@@ -1,5 +1,3 @@
-  $ "$TESTDIR/hghave" unix-permissions || exit 80
-
   $ hg init a
   $ cd a
   $ echo a > a
@@ -444,11 +442,13 @@
 
 Error if style not readable:
 
+#if unix-permissions
   $ touch q
   $ chmod 0 q
   $ hg log --style ./q
   abort: Permission denied: ./q
   [255]
+#endif
 
 Error if no style:
 
@@ -466,13 +466,15 @@
 Error if include fails:
 
   $ echo 'changeset = q' >> t
+#if unix-permissions
   $ hg log --style ./t
   abort: template file ./q: Permission denied
   [255]
+  $ rm q
+#endif
 
 Include works:
 
-  $ rm q
   $ echo '{rev}' > q
   $ hg log --style ./t
   8