Test method registration for IPv6 sockets

master
Florian Zeitz 2012-04-29 20:44:15 +02:00
parent 30d1aae140
commit 46736a3355
1 changed files with 9 additions and 4 deletions

View File

@ -617,7 +617,8 @@ end
------------------------------------------------------------------------ ------------------------------------------------------------------------
test("method registration") test("method registration")
test_methods(socket.tcp(), {
local tcp_methods = {
"accept", "accept",
"bind", "bind",
"close", "close",
@ -637,9 +638,11 @@ test_methods(socket.tcp(), {
"setsockname", "setsockname",
"settimeout", "settimeout",
"shutdown", "shutdown",
}) }
test_methods(socket.tcp(), tcp_methods)
test_methods(socket.tcp6(), tcp_methods)
test_methods(socket.udp(), { local udp_methods = {
"close", "close",
"getpeername", "getpeername",
"dirty", "dirty",
@ -655,7 +658,9 @@ test_methods(socket.udp(), {
"setpeername", "setpeername",
"setsockname", "setsockname",
"settimeout" "settimeout"
}) }
test_methods(socket.udp(), udp_methods)
test_methods(socket.udp6(), udp_methods)
test("partial receive") test("partial receive")
test_partialrecv() test_partialrecv()