aboutsummaryrefslogtreecommitdiff
path: root/tests/test.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-08-09 14:54:41 -0300
committerHisham Muhammad <hisham@gobolinux.org>2014-08-09 14:54:41 -0300
commit601b4e54981d685d0a3c6049622453e897e55c01 (patch)
treef8db6b102a3ac4226fbfbb52310e1896dbae2ad2 /tests/test.lua
parent95573506c5b92d2fdc32b162a3ad86d2da8d4f15 (diff)
parent4437e194558279b31878965d1c4b2188b1a8cf39 (diff)
downloadluafilesystem-601b4e54981d685d0a3c6049622453e897e55c01.tar.gz
luafilesystem-601b4e54981d685d0a3c6049622453e897e55c01.tar.bz2
luafilesystem-601b4e54981d685d0a3c6049622453e897e55c01.zip
Merge pull request #44 from stefan991/fix-attribute-lookup
Fix attributes `blksize` and `blocks`
Diffstat (limited to 'tests/test.lua')
-rw-r--r--tests/test.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 4990aec..abfbd4d 100644
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -120,6 +120,13 @@ assert (new_att.modification == attrib.modification)
120io.write(".") 120io.write(".")
121io.flush() 121io.flush()
122 122
123-- Check consistency of lfs.attributes values
124local attr = lfs.attributes (tmpfile)
125for key, value in pairs(attr) do
126 assert (value == lfs.attributes (tmpfile, key),
127 "lfs.attributes values not consistent")
128end
129
123-- Remove new file and directory 130-- Remove new file and directory
124assert (os.remove (tmpfile), "could not remove new file") 131assert (os.remove (tmpfile), "could not remove new file")
125assert (lfs.rmdir (tmpdir), "could not remove new directory") 132assert (lfs.rmdir (tmpdir), "could not remove new directory")