Show More
@@ -61,6 +61,14 b' substitutions = [' | |||
|
61 | 61 | # FormatMessage(WSAECONNRESET) |
|
62 | 62 | br'An existing connection was forcibly closed by the remote host', |
|
63 | 63 | ), |
|
64 | br'$EADDRINUSE$': ( | |
|
65 | # strerror() | |
|
66 | br'Address already in use', | |
|
67 | ||
|
68 | # FormatMessage(WSAEADDRINUSE) | |
|
69 | br'Only one usage of each socket address' | |
|
70 | br' \(protocol/network address/port\) is normally permitted', | |
|
71 | ), | |
|
64 | 72 | } |
|
65 | 73 | |
|
66 | 74 | for replace, msgs in _errors.items(): |
@@ -26,15 +26,10 b' parts that are not bundle1/bundle2 speci' | |||
|
26 | 26 | |
|
27 | 27 | Test server address cannot be reused |
|
28 | 28 | |
|
29 | #if windows | |
|
30 | 29 | $ hg serve -p $HGPORT1 2>&1 |
|
31 |
abort: cannot start server at 'localhost:$HGPORT1': |
|
|
30 | abort: cannot start server at 'localhost:$HGPORT1': $EADDRINUSE$ | |
|
32 | 31 | [255] |
|
33 | #else | |
|
34 | $ hg serve -p $HGPORT1 2>&1 | |
|
35 | abort: cannot start server at 'localhost:$HGPORT1': Address already in use | |
|
36 | [255] | |
|
37 | #endif | |
|
32 | ||
|
38 | 33 | $ cd .. |
|
39 | 34 | $ cat hg1.pid hg2.pid >> $DAEMON_PIDS |
|
40 | 35 |
@@ -17,15 +17,10 b'' | |||
|
17 | 17 | |
|
18 | 18 | Test server address cannot be reused |
|
19 | 19 | |
|
20 | #if windows | |
|
21 | 20 | $ hg serve -p $HGPORT1 2>&1 |
|
22 |
abort: cannot start server at 'localhost:$HGPORT1': |
|
|
21 | abort: cannot start server at 'localhost:$HGPORT1': $EADDRINUSE$ | |
|
23 | 22 | [255] |
|
24 | #else | |
|
25 | $ hg serve -p $HGPORT1 2>&1 | |
|
26 | abort: cannot start server at 'localhost:$HGPORT1': Address already in use | |
|
27 | [255] | |
|
28 | #endif | |
|
23 | ||
|
29 | 24 | $ cd .. |
|
30 | 25 | $ cat hg1.pid hg2.pid >> $DAEMON_PIDS |
|
31 | 26 |
@@ -34,15 +34,10 b' cacert not found' | |||
|
34 | 34 | |
|
35 | 35 | Test server address cannot be reused |
|
36 | 36 | |
|
37 | #if windows | |
|
38 | 37 | $ hg serve -p $HGPORT --certificate=$PRIV 2>&1 |
|
39 |
abort: cannot start server at 'localhost:$HGPORT': |
|
|
38 | abort: cannot start server at 'localhost:$HGPORT': $EADDRINUSE$ | |
|
40 | 39 | [255] |
|
41 | #else | |
|
42 | $ hg serve -p $HGPORT --certificate=$PRIV 2>&1 | |
|
43 | abort: cannot start server at 'localhost:$HGPORT': Address already in use | |
|
44 | [255] | |
|
45 | #endif | |
|
40 | ||
|
46 | 41 | $ cd .. |
|
47 | 42 | |
|
48 | 43 | Our test cert is not signed by a trusted CA. It should fail to verify if |
General Comments 0
You need to be logged in to leave comments.
Login now