From 04be61f88df2277fd0d2010b2deb851d9b081923 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Tue, 1 May 2012 16:21:06 +0800 Subject: [PATCH] Test server exits gracefully at command of test client --- test/testclnt.lua | 7 +++++++ 1 file changed, 7 insertions(+) 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 = { "setsockname", "settimeout" } + + +------------------------------------------------------------------------ test_methods(socket.udp(), udp_methods) test_methods(socket.udp6(), udp_methods) @@ -785,4 +788,8 @@ test_blockingtimeoutreceive(800091, 2, 3) test_blockingtimeoutreceive(800091, 3, 2) test_blockingtimeoutreceive(800091, 3, 1) +test("shutting server down") +reconnect() +remote("os.exit()") + test(string.format("done in %.2fs", socket.gettime() - start))