[PATCH 1 of 2 crew] test-clone-failure: enable for Windows using #if
Adrian Buehlmann
adrian at cadifra.com
Mon Jun 4 17:21:30 UTC 2012
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1338550698 -7200
# Node ID 8c45988c70471dc0d9febed018e4ccc90d408b0b
# Parent 61f3ca8e4d39fd401b358856ad132419d827c5e2
test-clone-failure: enable for Windows using #if
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
+
+#if unix-permissions
+
Inaccessible source
$ mkdir a
@@ -32,6 +33,9 @@
$ chmod 700 a
$ rm -r a b
+#endif
+
+
Source of wrong type
$ if "$TESTDIR/hghave" -q fifo; then
@@ -59,6 +63,9 @@
abort: destination 'a' is not empty
[255]
+
+#if 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
+
+#endif
More information about the Mercurial-devel
mailing list