monotone

View issue-179.diff

1#
2# old_revision [65bcb8cf8b32f68a5b48629b328f6d65979e58df]
3#
4# patch "test/func/netsync_bind_opt/__driver__.lua"
5# from [153c2be3d3c3c37b4fea590633d2d3be9bae5e82]
6# to [831a3aca7b849290a6e90229331ca5d4a831f59a]
7#
8============================================================
9--- test/func/netsync_bind_opt/__driver__.lua153c2be3d3c3c37b4fea590633d2d3be9bae5e82
10+++ test/func/netsync_bind_opt/__driver__.lua831a3aca7b849290a6e90229331ca5d4a831f59a
11@@ -10,18 +10,18 @@ check({"netstat", "-a", "-n"}, 0, true,
12 -- test with host:port
13 srv = netsync.start({"--bind", "localhost:" .. port})
14 check({"netstat", "-a", "-n"}, 0, true, false)
15-check(qgrep("127[.]0[.]0[.]1[.:]" .. port, "stdout"))
16+check(qgrep("127\.0\.\0\.1[\.\:]" .. port, "stdout"))
17 srv:stop()
18
19 -- test with ip:port
20 srv = netsync.start({"--bind", "127.0.0.1:" .. port})
21 check({"netstat", "-a", "-n"}, 0, true, false)
22-check(qgrep("127[.]0[.]0[.]1[.:]" .. port, "stdout"))
23+check(qgrep("127\.0\.0\.1[\.\:]" .. port, "stdout"))
24 srv:stop()
25
26 -- test only with :port
27 srv = netsync.start({"--bind", ":" .. port})
28 check({"netstat", "-a", "-n"}, 0, true, false)
29-check(qgrep("([*]|0[.]0[.]0[.]0)[.:]" .. port, "stdout"))
30+check(qgrep("(\*|0\.0\.0\.0)[\.\:]" .. port, "stdout"))
31 srv:stop()
32

Archive Download this file

Attachment to issue 179

Created: 10 years 8 months ago by Thomas Keller

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status