diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2012-05-01 16:21:06 +0800 |
---|---|---|
committer | Diego Nehab <diego.nehab@gmail.com> | 2012-05-01 16:21:06 +0800 |
commit | 04be61f88df2277fd0d2010b2deb851d9b081923 (patch) | |
tree | 149df7d12e8e7b0a498d44ffd4ede508fe4d225b /test | |
parent | af55d256758e4873bad4a1b743e2b88eed86c464 (diff) | |
download | luasocket-04be61f88df2277fd0d2010b2deb851d9b081923.tar.gz luasocket-04be61f88df2277fd0d2010b2deb851d9b081923.tar.bz2 luasocket-04be61f88df2277fd0d2010b2deb851d9b081923.zip |
Test server exits gracefully at command of test client
Diffstat (limited to 'test')
-rw-r--r-- | test/testclnt.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/testclnt.lua b/test/testclnt.lua index a510ded..8acb3d0 100644 --- a/test/testclnt.lua +++ b/test/testclnt.lua | |||
@@ -662,6 +662,9 @@ local udp_methods = { | |||
662 | "setsockname", | 662 | "setsockname", |
663 | "settimeout" | 663 | "settimeout" |
664 | } | 664 | } |
665 | |||
666 | |||
667 | ------------------------------------------------------------------------ | ||
665 | test_methods(socket.udp(), udp_methods) | 668 | test_methods(socket.udp(), udp_methods) |
666 | test_methods(socket.udp6(), udp_methods) | 669 | test_methods(socket.udp6(), udp_methods) |
667 | 670 | ||
@@ -785,4 +788,8 @@ test_blockingtimeoutreceive(800091, 2, 3) | |||
785 | test_blockingtimeoutreceive(800091, 3, 2) | 788 | test_blockingtimeoutreceive(800091, 3, 2) |
786 | test_blockingtimeoutreceive(800091, 3, 1) | 789 | test_blockingtimeoutreceive(800091, 3, 1) |
787 | 790 | ||
791 | test("shutting server down") | ||
792 | reconnect() | ||
793 | remote("os.exit()") | ||
794 | |||
788 | test(string.format("done in %.2fs", socket.gettime() - start)) | 795 | test(string.format("done in %.2fs", socket.gettime() - start)) |