diff options
author | tomas <tomas> | 2007-06-07 01:28:08 +0000 |
---|---|---|
committer | tomas <tomas> | 2007-06-07 01:28:08 +0000 |
commit | 57a64a5cfee378f331ae425945a8026bcc668a8b (patch) | |
tree | 77101c424f96ca8bb594c24e303c86136c60fab9 /tests | |
parent | 47f40e5705c53425ca0d22662f31c6742c2a5569 (diff) | |
download | luafilesystem-57a64a5cfee378f331ae425945a8026bcc668a8b.tar.gz luafilesystem-57a64a5cfee378f331ae425945a8026bcc668a8b.tar.bz2 luafilesystem-57a64a5cfee378f331ae425945a8026bcc668a8b.zip |
Adding function symlinkatributes. Updating version to 1.3.0
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test.lua b/tests/test.lua index 94338b0..b7479e4 100644 --- a/tests/test.lua +++ b/tests/test.lua | |||
@@ -69,6 +69,12 @@ local new_att = assert (lfs.attributes (tmpfile)) | |||
69 | assert (new_att.access == testdate2, "could not set access time") | 69 | assert (new_att.access == testdate2, "could not set access time") |
70 | assert (new_att.modification == testdate1, "could not set modification time") | 70 | assert (new_att.modification == testdate1, "could not set modification time") |
71 | 71 | ||
72 | -- Checking symbolic link information | ||
73 | assert (os.execute ("ln -s "..tmpfile.." _a_link_for_test_")) | ||
74 | assert (lfs.attributes"_a_link_for_test_".mode == "file") | ||
75 | assert (lfs.symlinkattributes"_a_link_for_test_".mode == "link") | ||
76 | assert (os.remove"_a_link_for_test_") | ||
77 | |||
72 | -- Restore access time to current value | 78 | -- Restore access time to current value |
73 | assert (lfs.touch (tmpfile, attrib.access, attrib.modification)) | 79 | assert (lfs.touch (tmpfile, attrib.access, attrib.modification)) |
74 | new_att = assert (lfs.attributes (tmpfile)) | 80 | new_att = assert (lfs.attributes (tmpfile)) |