tests: fix portability issue with test-merge-tools stable
authorMatt Mackall <mpm@selenic.com>
Fri, 17 Apr 2015 15:42:20 -0500
branchstable
changeset 24809 32d0d2f38910
parent 24808 d05ede9d3ecc
child 24810 f5416657e661
tests: fix portability issue with test-merge-tools Not sure how this ever worked.
tests/test-merge-tools.t
--- a/tests/test-merge-tools.t	Fri Apr 17 12:39:55 2015 -0400
+++ b/tests/test-merge-tools.t	Fri Apr 17 15:42:20 2015 -0500
@@ -105,9 +105,11 @@
   M f
   ? f.orig
 
+#if unix-permissions
+
 unexecutable file in $PATH shouldn't be found:
 
-  $ touch false
+  $ echo "echo fail" > false
   $ hg up -qC 1
   $ PATH="`pwd`:$BINDIR" $PYTHON "$BINDIR"/hg merge -r 2
   merging f
@@ -118,6 +120,8 @@
   [1]
   $ rm false
 
+#endif
+
 executable directory in $PATH shouldn't be found:
 
   $ mkdir false