aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/testclnt.lua18
-rw-r--r--test/testsrvr.lua2
2 files changed, 14 insertions, 6 deletions
diff --git a/test/testclnt.lua b/test/testclnt.lua
index b4b7063..a510ded 100644
--- a/test/testclnt.lua
+++ b/test/testclnt.lua
@@ -617,13 +617,16 @@ 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",
624 "connect", 625 "connect",
625 "dirty", 626 "dirty",
627 "getfamily",
626 "getfd", 628 "getfd",
629 "getoption",
627 "getpeername", 630 "getpeername",
628 "getsockname", 631 "getsockname",
629 "getstats", 632 "getstats",
@@ -637,13 +640,16 @@ test_methods(socket.tcp(), {
637 "setsockname", 640 "setsockname",
638 "settimeout", 641 "settimeout",
639 "shutdown", 642 "shutdown",
640}) 643}
644test_methods(socket.tcp(), tcp_methods)
645test_methods(socket.tcp6(), tcp_methods)
641 646
642test_methods(socket.udp(), { 647local udp_methods = {
643 "close", 648 "close",
644 "getpeername",
645 "dirty", 649 "dirty",
650 "getfamily",
646 "getfd", 651 "getfd",
652 "getoption",
647 "getpeername", 653 "getpeername",
648 "getsockname", 654 "getsockname",
649 "receive", 655 "receive",
@@ -655,7 +661,9 @@ test_methods(socket.udp(), {
655 "setpeername", 661 "setpeername",
656 "setsockname", 662 "setsockname",
657 "settimeout" 663 "settimeout"
658}) 664}
665test_methods(socket.udp(), udp_methods)
666test_methods(socket.udp6(), udp_methods)
659 667
660test("partial receive") 668test("partial receive")
661test_partialrecv() 669test_partialrecv()
diff --git a/test/testsrvr.lua b/test/testsrvr.lua
index ff31442..72b93ab 100644
--- a/test/testsrvr.lua
+++ b/test/testsrvr.lua
@@ -15,6 +15,6 @@ while 1 do
15 assert(command, emsg) 15 assert(command, emsg)
16 assert(control:send(ack)); 16 assert(control:send(ack));
17 print(command); 17 print(command);
18 (load(command))(); 18 ((loadstring or load)(command))();
19 end 19 end
20end 20end