test-tags: enable for Windows
authorAdrian Buehlmann <adrian@cadifra.com>
Mon, 04 Jun 2012 21:40:38 +0200
changeset 16857 1415edd88c56
parent 16856 241a32942c7a
child 16858 fdf99e0f60f3
test-tags: enable for Windows It turns out that MSYS does have a chmod.exe, but it has no effect. So, the inserted "#if unix-permissions" is somewhat redundant, as the test would pass without it as well: it would simply write the tag cache, despite what the comment says. But I'm actually in favor of inserting the #if, as it makes it clearer what's going on.
tests/test-tags.t
--- a/tests/test-tags.t	Mon Jun 04 21:09:54 2012 +0200
+++ b/tests/test-tags.t	Mon Jun 04 21:40:38 2012 +0200
@@ -1,5 +1,3 @@
-  $ "$TESTDIR/hghave" unix-permissions || exit 80
-
 Helper functions:
 
   $ cacheexists() {
@@ -77,11 +75,13 @@
 
 And again, but now unable to write tag cache:
 
+#if unix-permissions
   $ rm -f .hg/cache/tags
   $ chmod 555 .hg
   $ hg identify
   b9154636be93 tip
   $ chmod 755 .hg
+#endif
 
 Create a branch: