comparison 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
comparison
equal deleted inserted replaced
35232:a037b6647d8c 35233:1b22d325089c
15 $ hg serve -p $HGPORT -d --pid-file=../hg1.pid -E ../error.log 15 $ hg serve -p $HGPORT -d --pid-file=../hg1.pid -E ../error.log
16 $ hg serve --config server.uncompressed=False -p $HGPORT1 -d --pid-file=../hg2.pid 16 $ hg serve --config server.uncompressed=False -p $HGPORT1 -d --pid-file=../hg2.pid
17 17
18 Test server address cannot be reused 18 Test server address cannot be reused
19 19
20 #if windows
21 $ hg serve -p $HGPORT1 2>&1 20 $ hg serve -p $HGPORT1 2>&1
22 abort: cannot start server at 'localhost:$HGPORT1': * (glob) 21 abort: cannot start server at 'localhost:$HGPORT1': $EADDRINUSE$
23 [255] 22 [255]
24 #else 23
25 $ hg serve -p $HGPORT1 2>&1
26 abort: cannot start server at 'localhost:$HGPORT1': Address already in use
27 [255]
28 #endif
29 $ cd .. 24 $ cd ..
30 $ cat hg1.pid hg2.pid >> $DAEMON_PIDS 25 $ cat hg1.pid hg2.pid >> $DAEMON_PIDS
31 26
32 clone via stream 27 clone via stream
33 28