changeset 16917:bebe376b938f

test-command-template: enable for Windows
author Adrian Buehlmann <adrian@cadifra.com>
date Mon, 11 Jun 2012 19:18:36 +0200
parents c76175cd1415
children b112e265b78a
files tests/test-command-template.t
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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