More adjustments/bugfixes.
This commit is contained in:
parent
f7579db9e8
commit
bce1cb30d8
33 changed files with 135 additions and 96 deletions
|
@ -4,11 +4,11 @@
|
|||
-- to "/luasocket-test-cgi" and "/luasocket-test-cgi/"
|
||||
-- needs "AllowOverride AuthConfig" on /home/c/diego/tec/luasocket/test/auth
|
||||
|
||||
socket = require("socket")
|
||||
http = require("http")
|
||||
mime = require("mime")
|
||||
url = require("url")
|
||||
ltn12 = require("ltn12")
|
||||
local socket = require("socket")
|
||||
local http = require("http")
|
||||
local mime = require("mime")
|
||||
local url = require("url")
|
||||
local ltn12 = require("ltn12")
|
||||
|
||||
dofile("testsupport.lua")
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ local qptest = "qptest.bin"
|
|||
local eqptest = "qptest.bin2"
|
||||
local dqptest = "qptest.bin3"
|
||||
|
||||
local b64test = "luasocket.dll"
|
||||
local b64test = "luasocket.dylib"
|
||||
local eb64test = "b64test.bin"
|
||||
local db64test = "b64test.bin2"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
mime = require("mime")
|
||||
local mime = require("mime")
|
||||
|
||||
function test_dot(original, right)
|
||||
local result, n = mime.dot(2, original)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
socket = require"socket"
|
||||
local socket = require"socket"
|
||||
|
||||
host = host or "localhost"
|
||||
port = port or "8080"
|
||||
|
@ -418,7 +418,7 @@ function connect_errors()
|
|||
assert(not c and e == "connection refused", e)
|
||||
print("ok")
|
||||
io.stderr:write("host not found: ")
|
||||
local c, e = socket.connect("not.exist.com", 1);
|
||||
local c, e = socket.connect("host.is.invalid", 1);
|
||||
assert(not c and e == "host not found", e)
|
||||
print("ok")
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
socket = require"socket"
|
||||
local socket = require"socket"
|
||||
|
||||
host = host or "localhost"
|
||||
port = port or "8080"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
socket = require("socket")
|
||||
local socket = require("socket")
|
||||
socket.url = require("url")
|
||||
dofile("testsupport.lua")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue