diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-21 06:07:58 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-21 06:07:58 +0000 |
commit | bce1cb30d856d167e167c4c2997f9bebe03a612c (patch) | |
tree | 8e684b912cdc9d27c5aebf593107487c94866438 /test | |
parent | f7579db9e830ef41f422a280d26c9077f48728e5 (diff) | |
download | luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.tar.gz luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.tar.bz2 luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.zip |
More adjustments/bugfixes.
Diffstat (limited to 'test')
-rw-r--r-- | test/httptest.lua | 10 | ||||
-rw-r--r-- | test/mimetest.lua | 2 | ||||
-rw-r--r-- | test/stufftest.lua | 2 | ||||
-rw-r--r-- | test/testclnt.lua | 4 | ||||
-rw-r--r-- | test/testsrvr.lua | 2 | ||||
-rw-r--r-- | test/urltest.lua | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/test/httptest.lua b/test/httptest.lua index ea8465d..3a4d461 100644 --- a/test/httptest.lua +++ b/test/httptest.lua | |||
@@ -4,11 +4,11 @@ | |||
4 | -- to "/luasocket-test-cgi" and "/luasocket-test-cgi/" | 4 | -- to "/luasocket-test-cgi" and "/luasocket-test-cgi/" |
5 | -- needs "AllowOverride AuthConfig" on /home/c/diego/tec/luasocket/test/auth | 5 | -- needs "AllowOverride AuthConfig" on /home/c/diego/tec/luasocket/test/auth |
6 | 6 | ||
7 | socket = require("socket") | 7 | local socket = require("socket") |
8 | http = require("http") | 8 | local http = require("http") |
9 | mime = require("mime") | 9 | local mime = require("mime") |
10 | url = require("url") | 10 | local url = require("url") |
11 | ltn12 = require("ltn12") | 11 | local ltn12 = require("ltn12") |
12 | 12 | ||
13 | dofile("testsupport.lua") | 13 | dofile("testsupport.lua") |
14 | 14 | ||
diff --git a/test/mimetest.lua b/test/mimetest.lua index f51c3b8..685c610 100644 --- a/test/mimetest.lua +++ b/test/mimetest.lua | |||
@@ -8,7 +8,7 @@ local qptest = "qptest.bin" | |||
8 | local eqptest = "qptest.bin2" | 8 | local eqptest = "qptest.bin2" |
9 | local dqptest = "qptest.bin3" | 9 | local dqptest = "qptest.bin3" |
10 | 10 | ||
11 | local b64test = "luasocket.dll" | 11 | local b64test = "luasocket.dylib" |
12 | local eb64test = "b64test.bin" | 12 | local eb64test = "b64test.bin" |
13 | local db64test = "b64test.bin2" | 13 | local db64test = "b64test.bin2" |
14 | 14 | ||
diff --git a/test/stufftest.lua b/test/stufftest.lua index eddf636..490053f 100644 --- a/test/stufftest.lua +++ b/test/stufftest.lua | |||
@@ -1,4 +1,4 @@ | |||
1 | mime = require("mime") | 1 | local mime = require("mime") |
2 | 2 | ||
3 | function test_dot(original, right) | 3 | function test_dot(original, right) |
4 | local result, n = mime.dot(2, original) | 4 | local result, n = mime.dot(2, original) |
diff --git a/test/testclnt.lua b/test/testclnt.lua index 1b20ad1..9aa07fe 100644 --- a/test/testclnt.lua +++ b/test/testclnt.lua | |||
@@ -1,4 +1,4 @@ | |||
1 | socket = require"socket" | 1 | local socket = require"socket" |
2 | 2 | ||
3 | host = host or "localhost" | 3 | host = host or "localhost" |
4 | port = port or "8080" | 4 | port = port or "8080" |
@@ -418,7 +418,7 @@ function connect_errors() | |||
418 | assert(not c and e == "connection refused", e) | 418 | assert(not c and e == "connection refused", e) |
419 | print("ok") | 419 | print("ok") |
420 | io.stderr:write("host not found: ") | 420 | io.stderr:write("host not found: ") |
421 | local c, e = socket.connect("not.exist.com", 1); | 421 | local c, e = socket.connect("host.is.invalid", 1); |
422 | assert(not c and e == "host not found", e) | 422 | assert(not c and e == "host not found", e) |
423 | print("ok") | 423 | print("ok") |
424 | end | 424 | end |
diff --git a/test/testsrvr.lua b/test/testsrvr.lua index 5b842f1..71281cf 100644 --- a/test/testsrvr.lua +++ b/test/testsrvr.lua | |||
@@ -1,4 +1,4 @@ | |||
1 | socket = require"socket" | 1 | local socket = require"socket" |
2 | 2 | ||
3 | host = host or "localhost" | 3 | host = host or "localhost" |
4 | port = port or "8080" | 4 | port = port or "8080" |
diff --git a/test/urltest.lua b/test/urltest.lua index 92f2fae..eb15bcf 100644 --- a/test/urltest.lua +++ b/test/urltest.lua | |||
@@ -1,4 +1,4 @@ | |||
1 | socket = require("socket") | 1 | local socket = require("socket") |
2 | socket.url = require("url") | 2 | socket.url = require("url") |
3 | dofile("testsupport.lua") | 3 | dofile("testsupport.lua") |
4 | 4 | ||