changeset 24809:32d0d2f38910 stable

tests: fix portability issue with test-merge-tools Not sure how this ever worked.
author Matt Mackall <mpm@selenic.com>
date Fri, 17 Apr 2015 15:42:20 -0500
parents d05ede9d3ecc
children f5416657e661
files tests/test-merge-tools.t
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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