aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoruid20006 <uid20006>2005-08-16 13:48:23 +0000
committeruid20006 <uid20006>2005-08-16 13:48:23 +0000
commite7ced7f8af5f3316cf4508478a13dc51cff28773 (patch)
tree775fe8a7c605cda478c87ea51c9e7110b279b70d /tests
parent5cb0d77851770950d4b9f0d4100318abc5b2dd10 (diff)
downloadluafilesystem-e7ced7f8af5f3316cf4508478a13dc51cff28773.tar.gz
luafilesystem-e7ced7f8af5f3316cf4508478a13dc51cff28773.tar.bz2
luafilesystem-e7ced7f8af5f3316cf4508478a13dc51cff28773.zip
using lfs.rmdir instead of os.remove.
Diffstat (limited to 'tests')
-rw-r--r--tests/test.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 07436f9..a152bbb 100644
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -54,7 +54,7 @@ new_att = assert (lfs.attributes (tmpdir))
54assert (new_att.access == attrib.access) 54assert (new_att.access == attrib.access)
55assert (new_att.modification == attrib.modification) 55assert (new_att.modification == attrib.modification)
56-- Remove new directory 56-- Remove new directory
57assert (os.remove (tmpdir), "could not remove new directory") 57assert (lfs.rmdir (tmpdir), "could not remove new directory")
58assert (lfs.mkdir (tmpdir.."/lfs_tmp_dir") == false, "could create a directory inside a non-existent one") 58assert (lfs.mkdir (tmpdir.."/lfs_tmp_dir") == false, "could create a directory inside a non-existent one")
59-- Trying to get attributes of a non-existent file 59-- Trying to get attributes of a non-existent file
60assert (lfs.attributes ("this couldn't be an actual file") == nil, "could get attributes of a non-existent file") 60assert (lfs.attributes ("this couldn't be an actual file") == nil, "could get attributes of a non-existent file")