aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2012-05-01 16:21:06 +0800
committerDiego Nehab <diego.nehab@gmail.com>2012-05-01 16:21:06 +0800
commit04be61f88df2277fd0d2010b2deb851d9b081923 (patch)
tree149df7d12e8e7b0a498d44ffd4ede508fe4d225b /test
parentaf55d256758e4873bad4a1b743e2b88eed86c464 (diff)
downloadluasocket-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.lua7
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------------------------------------------------------------------------
665test_methods(socket.udp(), udp_methods) 668test_methods(socket.udp(), udp_methods)
666test_methods(socket.udp6(), udp_methods) 669test_methods(socket.udp6(), udp_methods)
667 670
@@ -785,4 +788,8 @@ test_blockingtimeoutreceive(800091, 2, 3)
785test_blockingtimeoutreceive(800091, 3, 2) 788test_blockingtimeoutreceive(800091, 3, 2)
786test_blockingtimeoutreceive(800091, 3, 1) 789test_blockingtimeoutreceive(800091, 3, 1)
787 790
791test("shutting server down")
792reconnect()
793remote("os.exit()")
794
788test(string.format("done in %.2fs", socket.gettime() - start)) 795test(string.format("done in %.2fs", socket.gettime() - start))