diff tests/test-http.t @ 35233:1b22d325089c

tests: add a substitution for EADDRINUSE/WSAEADDRINUSE messages I suspect some more of these are globbed out, so this is a bit of future proofing.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 02 Dec 2017 20:03:28 -0500
parents 62e10bf001a9
children 44b8b5ad30eb
line wrap: on
line diff
--- a/tests/test-http.t	Sat Dec 02 20:10:58 2017 -0500
+++ b/tests/test-http.t	Sat Dec 02 20:03:28 2017 -0500
@@ -17,15 +17,10 @@
 
 Test server address cannot be reused
 
-#if windows
   $ hg serve -p $HGPORT1 2>&1
-  abort: cannot start server at 'localhost:$HGPORT1': * (glob)
+  abort: cannot start server at 'localhost:$HGPORT1': $EADDRINUSE$
   [255]
-#else
-  $ hg serve -p $HGPORT1 2>&1
-  abort: cannot start server at 'localhost:$HGPORT1': Address already in use
-  [255]
-#endif
+
   $ cd ..
   $ cat hg1.pid hg2.pid >> $DAEMON_PIDS