diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-18 08:02:09 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-18 08:02:09 +0000 |
| commit | ac4aac0909da26befaaeb6b415f66cf35b6980e0 (patch) | |
| tree | 3d3289e6192508484dcbefa10e2d862c5cc06d64 /test/ftptest.lua | |
| parent | 62799a416d2b29d8058331f3d8725fb67c75d261 (diff) | |
| download | luasocket-ac4aac0909da26befaaeb6b415f66cf35b6980e0.tar.gz luasocket-ac4aac0909da26befaaeb6b415f66cf35b6980e0.tar.bz2 luasocket-ac4aac0909da26befaaeb6b415f66cf35b6980e0.zip | |
Implemented safe exceptions. This looks preeety good.
Diffstat (limited to 'test/ftptest.lua')
| -rw-r--r-- | test/ftptest.lua | 10 |
1 files changed, 0 insertions, 10 deletions
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 { | |||
| 86 | } | 86 | } |
| 87 | check(not err and back == index, err) | 87 | check(not err and back == index, err) |
| 88 | 88 | ||
| 89 | io.write("testing home directory listing: ") | ||
| 90 | expected = capture("ls -F /var/ftp | grep -v /") | ||
| 91 | back, err = socket.ftp.get("ftp://localhost/") | ||
| 92 | check(back and similar(back, expected), nil, err) | ||
| 93 | |||
| 94 | io.write("testing directory listing: ") | ||
| 95 | expected = capture("ls -F /var/ftp/pub | grep -v /") | ||
| 96 | back, err = socket.ftp.get("ftp://localhost/pub;type=d") | ||
| 97 | check(similar(back, expected)) | ||
| 98 | |||
| 99 | io.write("testing upload denial: ") | 89 | io.write("testing upload denial: ") |
| 100 | ret, err = socket.ftp.put("ftp://localhost/index.up.html;type=a", index) | 90 | ret, err = socket.ftp.put("ftp://localhost/index.up.html;type=a", index) |
| 101 | check(err, err) | 91 | check(err, err) |
