diff options
author | Diego Nehab <diego@impa.br> | 2013-05-27 21:17:00 +0800 |
---|---|---|
committer | Diego Nehab <diego@impa.br> | 2013-05-27 21:17:00 +0800 |
commit | 3d61b0fe36708bce78bd087c7f7247e93e07a667 (patch) | |
tree | 51727c3f53b3e550467ee60eca54a2a202a828f3 /test/testclnt.lua | |
parent | afe04943184c95adfbb2d05b8b7f0f4b3c36c3b5 (diff) | |
parent | 834a3cf520637df0af9967e1f8ad9e40837771cb (diff) | |
download | luasocket-3d61b0fe36708bce78bd087c7f7247e93e07a667.tar.gz luasocket-3d61b0fe36708bce78bd087c7f7247e93e07a667.tar.bz2 luasocket-3d61b0fe36708bce78bd087c7f7247e93e07a667.zip |
Merge branch 'pkulchenko' into unstable
Diffstat (limited to 'test/testclnt.lua')
-rw-r--r-- | test/testclnt.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/testclnt.lua b/test/testclnt.lua index 8acb3d0..315783b 100644 --- a/test/testclnt.lua +++ b/test/testclnt.lua | |||
@@ -642,7 +642,10 @@ local tcp_methods = { | |||
642 | "shutdown", | 642 | "shutdown", |
643 | } | 643 | } |
644 | test_methods(socket.tcp(), tcp_methods) | 644 | test_methods(socket.tcp(), tcp_methods) |
645 | test_methods(socket.tcp6(), tcp_methods) | 645 | do local sock = socket.tcp6() |
646 | if sock then test_methods(socket.tcp6(), tcp_methods) | ||
647 | else io.stderr:write("Warning! IPv6 does not support!\n") end | ||
648 | end | ||
646 | 649 | ||
647 | local udp_methods = { | 650 | local udp_methods = { |
648 | "close", | 651 | "close", |
@@ -666,7 +669,10 @@ local udp_methods = { | |||
666 | 669 | ||
667 | ------------------------------------------------------------------------ | 670 | ------------------------------------------------------------------------ |
668 | test_methods(socket.udp(), udp_methods) | 671 | test_methods(socket.udp(), udp_methods) |
669 | test_methods(socket.udp6(), udp_methods) | 672 | do local sock = socket.tcp6() |
673 | if sock then test_methods(socket.udp6(), udp_methods) | ||
674 | else io.stderr:write("Warning! IPv6 does not support!\n") end | ||
675 | end | ||
670 | 676 | ||
671 | test("partial receive") | 677 | test("partial receive") |
672 | test_partialrecv() | 678 | test_partialrecv() |