From ebde49944b1ba06153fe31a1ad92aaebf6e053e2 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Thu, 30 May 2013 17:59:28 +0800 Subject: Unix domain tests still broken. --- test/utestclnt.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/utestclnt.lua') diff --git a/test/utestclnt.lua b/test/utestclnt.lua index 01f55e5..34a0718 100644 --- a/test/utestclnt.lua +++ b/test/utestclnt.lua @@ -1,7 +1,7 @@ -require"socket" -local socket = require"socket.unix" +local socket = require"socket" +socket.unix = require"socket.unix" -host = "luasocket" +host = host or "luasocket" function pass(...) local s = string.format(...) @@ -82,7 +82,7 @@ function check_timeout(tm, sl, elapsed, err, opp, mode, alldone) end end -if not socket.DEBUG then +if not socket._DEBUG then fail("Please define LUASOCKET_DEBUG and recompile LuaSocket") end @@ -115,7 +115,7 @@ else pass("connected!") end ------------------------------------------------------------------------ function test_methods(sock, methods) - for _, v in methods do + for _, v in pairs(methods) do if type(sock[v]) ~= "function" then fail(sock.class .. " method '" .. v .. "' not registered") end -- cgit v1.2.3-55-g6feb