aboutsummaryrefslogtreecommitdiff
path: root/test/testclnt.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-01-24 02:47:24 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-01-24 02:47:24 +0000
commit62a4c505e488c714e8795ea85564504562d30301 (patch)
treef270f53f26905b7275cea172e52ebc269a41c695 /test/testclnt.lua
parent0c9f420a3549df3fb331bb24157b65a3301641d4 (diff)
downloadluasocket-62a4c505e488c714e8795ea85564504562d30301.tar.gz
luasocket-62a4c505e488c714e8795ea85564504562d30301.tar.bz2
luasocket-62a4c505e488c714e8795ea85564504562d30301.zip
Working on the manual...
Making better tests for error messages. Changed a few names. Moved gethostname to inet.c.
Diffstat (limited to '')
-rw-r--r--test/testclnt.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testclnt.lua b/test/testclnt.lua
index beb0157..5f366b2 100644
--- a/test/testclnt.lua
+++ b/test/testclnt.lua
@@ -378,7 +378,7 @@ end
378 378
379------------------------------------------------------------------------ 379------------------------------------------------------------------------
380function accept_errors() 380function accept_errors()
381 io.write("not listenning: ") 381 io.write("not listening: ")
382 local d, e = socket.bind("*", 0) 382 local d, e = socket.bind("*", 0)
383 assert(d, e); 383 assert(d, e);
384 local c, e = socket.tcp(); 384 local c, e = socket.tcp();
@@ -392,7 +392,7 @@ function accept_errors()
392 assert(c, e); 392 assert(c, e);
393 d:setfd(c:getfd()) 393 d:setfd(c:getfd())
394 local r, e = d:accept() 394 local r, e = d:accept()
395 assert(not r and e == "not supported", e) 395 assert(not r and e == "not supported" or e == "not listening", e)
396 print("ok") 396 print("ok")
397end 397end
398 398