diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2012-04-29 20:44:15 +0200 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2012-04-29 20:44:15 +0200 |
commit | 46736a33555c51bd5bbba872087b518525dcf1cc (patch) | |
tree | 6fe960645d3d2c23c45bf2c114a3f663edc162ca /test | |
parent | 30d1aae140db85501672983481a987418eeba2ed (diff) | |
download | luasocket-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.lua | 13 |
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 | ------------------------------------------------------------------------ |
619 | test("method registration") | 619 | test("method registration") |
620 | test_methods(socket.tcp(), { | 620 | |
621 | local 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 | } |
642 | test_methods(socket.tcp(), tcp_methods) | ||
643 | test_methods(socket.tcp6(), tcp_methods) | ||
641 | 644 | ||
642 | test_methods(socket.udp(), { | 645 | local 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 | } |
662 | test_methods(socket.udp(), udp_methods) | ||
663 | test_methods(socket.udp6(), udp_methods) | ||
659 | 664 | ||
660 | test("partial receive") | 665 | test("partial receive") |
661 | test_partialrecv() | 666 | test_partialrecv() |