[PATCH V2] test-bad-pull: adjust for Windows

Adrian Buehlmann adrian at cadifra.com
Tue Jun 19 10:15:51 CDT 2012


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1340118304 -7200
# Node ID 0e283e25191e199a693b8e19434ff5612f9de465
# Parent  8390831ff124322fbfe14ee74007e72de3923472
test-bad-pull: adjust for Windows

On a English Windows 7, the testcase fails with

  $ hg clone http://localhost:$HGPORT/ copy
  abort: error: No connection could be made because the target machine actively refused it

Since the error message on non-English Windows installs are most likely
different, we have to glob the entire error message away for Windows.

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: * (glob)
+  [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