mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-13 06:04:31 +02:00
Unix domain tests still broken.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user