tests: avoid chmod on windows in hgrc tests
authorDenis Laxalde <denis@laxalde.org>
Thu, 17 Oct 2019 21:37:21 +0200
changeset 43279 726bd0b612a2
parent 43278 2c70dd03b743
child 43280 5d4046594d6f
tests: avoid chmod on windows in hgrc tests Follow up on changeset d201a637c971 introducing this test, which fails on Windows.
tests/test-hgrc.t
--- a/tests/test-hgrc.t	Thu Oct 17 13:34:21 2019 +0200
+++ b/tests/test-hgrc.t	Thu Oct 17 21:37:21 2019 +0200
@@ -56,10 +56,12 @@
   $ echo '%include $TESTTMP/included' >> $HGRC
   $ hg showconfig section
   section.option=value
+#if no-windows
   $ chmod u-r $TESTTMP/included
   $ hg showconfig section
   hg: parse error at $TESTTMP/hgrc:2: cannot include $TESTTMP/included (Permission denied)
   [255]
+#endif
 
 issue1829: wrong indentation