tests: convert some 'hghave symlink' to #if stable
authorMads Kiilerich <mads@kiilerich.com>
Sun, 10 Jun 2012 18:50:42 +0200
branchstable
changeset 1095 716365545fb1
parent 1094 467eb2068e4a
child 1096 cbb200487fb6
tests: convert some 'hghave symlink' to #if This will enable some tests for windows. [ original upstream message ]
tests/test-keyword.t
--- a/tests/test-keyword.t	Sun Jun 10 18:50:42 2012 +0200
+++ b/tests/test-keyword.t	Sun Jun 10 18:50:42 2012 +0200
@@ -1,4 +1,4 @@
-  $ "$TESTDIR/hghave" symlink unix-permissions serve || exit 80
+  $ "$TESTDIR/hghave" unix-permissions serve || exit 80
 
   $ cat <<EOF >> $HGRCPATH
   > [extensions]
@@ -658,6 +658,8 @@
   $ hg update --clean
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
+#if symlink
+
 cp symlink file; hg cp -A symlink file (part2)
 - copied symlink points to kw ignored file: do not overwrite
 
@@ -679,6 +681,8 @@
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ rm i symignored
 
+#endif
+
 Custom keywordmaps as argument to kwdemo
 
   $ hg --quiet kwdemo "Xinfo = {author}: {desc}"