mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 11:03:07 +00:00
Removing the symbolic link tests since they don't work in Windows. We have to re-check them later.
This commit is contained in:
@@ -70,10 +70,11 @@ assert (new_att.access == testdate2, "could not set access time")
|
||||
assert (new_att.modification == testdate1, "could not set modification time")
|
||||
|
||||
-- Checking symbolic link information
|
||||
assert (os.execute ("ln -s "..tmpfile.." _a_link_for_test_"))
|
||||
assert (lfs.attributes"_a_link_for_test_".mode == "file")
|
||||
assert (lfs.symlinkattributes"_a_link_for_test_".mode == "link")
|
||||
assert (os.remove"_a_link_for_test_")
|
||||
-- We have to review these tests since they don't work in Windows and assume os.execute is available
|
||||
--assert (os.execute ("ln -s "..tmpfile.." _a_link_for_test_"))
|
||||
--assert (lfs.attributes"_a_link_for_test_".mode == "file")
|
||||
--assert (lfs.symlinkattributes"_a_link_for_test_".mode == "link")
|
||||
--assert (os.remove"_a_link_for_test_")
|
||||
|
||||
-- Restore access time to current value
|
||||
assert (lfs.touch (tmpfile, attrib.access, attrib.modification))
|
||||
|
||||
Reference in New Issue
Block a user