[PATCH] test-clone-failure: enable for Windows using $$hghave

Adrian Buehlmann adrian at cadifra.com
Fri Jun 1 07:08:16 CDT 2012


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1338550698 -7200
# Node ID 11186ea1f83bdb20630bba6d70e02d41202a7fc1
# Parent  a3628ca0854445a35918b1104ff04ef7a0cd6e03
test-clone-failure: enable for Windows using $$hghave

diff --git a/tests/test-clone-failure.t b/tests/test-clone-failure.t
--- a/tests/test-clone-failure.t
+++ b/tests/test-clone-failure.t
@@ -1,5 +1,3 @@
-  $ "$TESTDIR/hghave" unix-permissions || exit 80
-
 No local source
 
   $ hg clone a b
@@ -9,10 +7,13 @@
 No remote source
 
   $ hg clone http://127.0.0.1:3121/a b
-  abort: error: Connection refused
+  abort: error: *refused* (glob)
   [255]
   $ rm -rf b # work around bug with http clone
 
+
+  $$hghave unix-permissions
+
 Inaccessible source
 
   $ mkdir a
@@ -32,6 +33,9 @@
   $ chmod 700 a
   $ rm -r a b
 
+  $$hghad
+
+
 Source of wrong type
 
   $ if "$TESTDIR/hghave" -q fifo; then
@@ -59,6 +63,9 @@
   abort: destination 'a' is not empty
   [255]
 
+
+  $$hghave unix-permissions
+
 leave existing directory in place after clone failure
 
   $ hg init c
@@ -78,3 +85,5 @@
 reenable perm to allow deletion
 
   $ chmod +rx c/.hg/store/data
+
+  $$hghad


More information about the Mercurial-devel mailing list