aboutsummaryrefslogtreecommitdiff
path: root/tests/test.lua
diff options
context:
space:
mode:
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")