diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2014-08-09 14:54:41 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-08-09 14:54:41 -0300 |
| commit | 601b4e54981d685d0a3c6049622453e897e55c01 (patch) | |
| tree | f8db6b102a3ac4226fbfbb52310e1896dbae2ad2 /tests | |
| parent | 95573506c5b92d2fdc32b162a3ad86d2da8d4f15 (diff) | |
| parent | 4437e194558279b31878965d1c4b2188b1a8cf39 (diff) | |
| download | luafilesystem-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')
| -rw-r--r-- | tests/test.lua | 7 |
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) | |||
| 120 | io.write(".") | 120 | io.write(".") |
| 121 | io.flush() | 121 | io.flush() |
| 122 | 122 | ||
| 123 | -- Check consistency of lfs.attributes values | ||
| 124 | local attr = lfs.attributes (tmpfile) | ||
| 125 | for key, value in pairs(attr) do | ||
| 126 | assert (value == lfs.attributes (tmpfile, key), | ||
| 127 | "lfs.attributes values not consistent") | ||
| 128 | end | ||
| 129 | |||
| 123 | -- Remove new file and directory | 130 | -- Remove new file and directory |
| 124 | assert (os.remove (tmpfile), "could not remove new file") | 131 | assert (os.remove (tmpfile), "could not remove new file") |
| 125 | assert (lfs.rmdir (tmpdir), "could not remove new directory") | 132 | assert (lfs.rmdir (tmpdir), "could not remove new directory") |
