From 80b7acea2eb19f7facddce17733b88cb50a56cea Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Thu, 17 Jun 2004 00:18:48 +0000 Subject: Compiled and tested on Windows... --- test/mimetest.lua | 2 +- test/testclnt.lua | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/mimetest.lua b/test/mimetest.lua index 2d5bce6..66aeaf3 100644 --- a/test/mimetest.lua +++ b/test/mimetest.lua @@ -8,7 +8,7 @@ local qptest = "qptest.bin" local eqptest = "qptest.bin2" local dqptest = "qptest.bin3" -local b64test = "luasocket.dylib" +local b64test = "luasocket.dll" local eb64test = "b64test.bin" local db64test = "b64test.bin2" diff --git a/test/testclnt.lua b/test/testclnt.lua index 6735113..da6b2e8 100644 --- a/test/testclnt.lua +++ b/test/testclnt.lua @@ -339,12 +339,14 @@ end ------------------------------------------------------------------------ function test_selectbugs() local r, s, e = socket.select(nil, nil, 0.1) - assert(type(r) == "table" and type(s) == "table" and e == "timeout") + assert(type(r) == "table" and type(s) == "table" and + (e == "timeout" or e == "error")) pass("both nil: ok") local udp = socket.udp() udp:close() r, s, e = socket.select({ udp }, { udp }, 0.1) - assert(type(r) == "table" and type(s) == "table" and e == "timeout") + assert(type(r) == "table" and type(s) == "table" and + (e == "timeout" or e == "error")) pass("closed sockets: ok") e = pcall(socket.select, "wrong", 1, 0.1) assert(e == false) -- cgit v1.2.3-55-g6feb