| 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__.lua␉153c2be3d3c3c37b4fea590633d2d3be9bae5e82␊ |
| 10 | +++ test/func/netsync_bind_opt/__driver__.lua␉831a3aca7b849290a6e90229331ca5d4a831f59a␊ |
| 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 | ␊ |
