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_methods(socket.tcp(), {
local tcp_methods = {
"accept",
"bind",
"close",
@ -637,9 +638,11 @@ test_methods(socket.tcp(), {
"setsockname",
"settimeout",
"shutdown",
})
}
test_methods(socket.tcp(), tcp_methods)
test_methods(socket.tcp6(), tcp_methods)
test_methods(socket.udp(), {
local udp_methods = {
"close",
"getpeername",
"dirty",
@ -655,7 +658,9 @@ test_methods(socket.udp(), {
"setpeername",
"setsockname",
"settimeout"
})
}
test_methods(socket.udp(), udp_methods)
test_methods(socket.udp6(), udp_methods)
test("partial receive")
test_partialrecv()