[PATCH] test-bad-pull: adjust for Windows
Adrian Buehlmann
adrian at cadifra.com
Tue Jun 19 08:59:02 CDT 2012
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1340113978 -7200
# Node ID 1fd587a481b5afee357dd503e138f306ca762caa
# Parent 79902f7e27df0eeae96d4d47d5c8a12fae2a0bb7
test-bad-pull: adjust for Windows
On Windows, the test fails with a different error message
diff --git a/tests/test-bad-pull.t b/tests/test-bad-pull.t
--- a/tests/test-bad-pull.t
+++ b/tests/test-bad-pull.t
@@ -1,8 +1,14 @@
$ "$TESTDIR/hghave" serve || exit 80
+#if windows
+ $ hg clone http://localhost:$HGPORT/ copy
+ abort: error: No connection could be made because the target machine actively refused it
+ [255]
+#else
$ hg clone http://localhost:$HGPORT/ copy
abort: error: Connection refused
[255]
+#endif
$ test -d copy
[1]
More information about the Mercurial-devel
mailing list