From ac4aac0909da26befaaeb6b415f66cf35b6980e0 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Fri, 18 Jun 2004 08:02:09 +0000 Subject: Implemented safe exceptions. This looks preeety good. --- test/ftptest.lua | 10 ---------- test/httptest.lua | 1 - 2 files changed, 11 deletions(-) (limited to 'test') diff --git a/test/ftptest.lua b/test/ftptest.lua index 37e3edc..f578c82 100644 --- a/test/ftptest.lua +++ b/test/ftptest.lua @@ -86,16 +86,6 @@ back, err = socket.ftp.get { } check(not err and back == index, err) -io.write("testing home directory listing: ") -expected = capture("ls -F /var/ftp | grep -v /") -back, err = socket.ftp.get("ftp://localhost/") -check(back and similar(back, expected), nil, err) - -io.write("testing directory listing: ") -expected = capture("ls -F /var/ftp/pub | grep -v /") -back, err = socket.ftp.get("ftp://localhost/pub;type=d") -check(similar(back, expected)) - io.write("testing upload denial: ") ret, err = socket.ftp.put("ftp://localhost/index.up.html;type=a", index) check(err, err) diff --git a/test/httptest.lua b/test/httptest.lua index d1f2b88..45d7e8d 100644 --- a/test/httptest.lua +++ b/test/httptest.lua @@ -70,7 +70,6 @@ io.write("testing request uri correctness: ") local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string" local back, c, h = http.request("http://" .. host .. forth) if not back then fail(c) end -print(back) back = url.parse(back) if similar(back.query, "this+is+the+query+string") then print("ok") else fail(back.query) end -- cgit v1.2.3-55-g6feb