aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2012-04-29 20:44:15 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2012-04-29 20:44:15 +0200
commit46736a33555c51bd5bbba872087b518525dcf1cc (patch)
tree6fe960645d3d2c23c45bf2c114a3f663edc162ca /test
parent30d1aae140db85501672983481a987418eeba2ed (diff)
downloadluasocket-46736a33555c51bd5bbba872087b518525dcf1cc.tar.gz
luasocket-46736a33555c51bd5bbba872087b518525dcf1cc.tar.bz2
luasocket-46736a33555c51bd5bbba872087b518525dcf1cc.zip
Test method registration for IPv6 sockets
Diffstat (limited to 'test')
-rw-r--r--test/testclnt.lua13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/testclnt.lua b/test/testclnt.lua
index b4b7063..ee716f9 100644
--- a/test/testclnt.lua
+++ b/test/testclnt.lua
@@ -617,7 +617,8 @@ end
617 617
618------------------------------------------------------------------------ 618------------------------------------------------------------------------
619test("method registration") 619test("method registration")
620test_methods(socket.tcp(), { 620
621local tcp_methods = {
621 "accept", 622 "accept",
622 "bind", 623 "bind",
623 "close", 624 "close",
@@ -637,9 +638,11 @@ test_methods(socket.tcp(), {
637 "setsockname", 638 "setsockname",
638 "settimeout", 639 "settimeout",
639 "shutdown", 640 "shutdown",
640}) 641}
642test_methods(socket.tcp(), tcp_methods)
643test_methods(socket.tcp6(), tcp_methods)
641 644
642test_methods(socket.udp(), { 645local udp_methods = {
643 "close", 646 "close",
644 "getpeername", 647 "getpeername",
645 "dirty", 648 "dirty",
@@ -655,7 +658,9 @@ test_methods(socket.udp(), {
655 "setpeername", 658 "setpeername",
656 "setsockname", 659 "setsockname",
657 "settimeout" 660 "settimeout"
658}) 661}
662test_methods(socket.udp(), udp_methods)
663test_methods(socket.udp6(), udp_methods)
659 664
660test("partial receive") 665test("partial receive")
661test_partialrecv() 666test_partialrecv()