diff options
author | carregal <carregal> | 2007-10-26 20:13:10 +0000 |
---|---|---|
committer | carregal <carregal> | 2007-10-26 20:13:10 +0000 |
commit | d202dad4f13caf9cc104dc1fdcbdbdd2b607a91e (patch) | |
tree | 54f65a290127b4c4a676f4751437a90989977a14 /tests | |
parent | 6756befeff95ae056484743dc04d026c959c8fa7 (diff) | |
download | luafilesystem-d202dad4f13caf9cc104dc1fdcbdbdd2b607a91e.tar.gz luafilesystem-d202dad4f13caf9cc104dc1fdcbdbdd2b607a91e.tar.bz2 luafilesystem-d202dad4f13caf9cc104dc1fdcbdbdd2b607a91e.zip |
Removing the symbolic link tests since they don't work in Windows. We have to re-check them later.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test.lua b/tests/test.lua index b7479e4..eecabdc 100644 --- a/tests/test.lua +++ b/tests/test.lua | |||
@@ -70,10 +70,11 @@ 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 | 72 | -- Checking symbolic link information |
73 | assert (os.execute ("ln -s "..tmpfile.." _a_link_for_test_")) | 73 | -- We have to review these tests since they don't work in Windows and assume os.execute is available |
74 | assert (lfs.attributes"_a_link_for_test_".mode == "file") | 74 | --assert (os.execute ("ln -s "..tmpfile.." _a_link_for_test_")) |
75 | assert (lfs.symlinkattributes"_a_link_for_test_".mode == "link") | 75 | --assert (lfs.attributes"_a_link_for_test_".mode == "file") |
76 | assert (os.remove"_a_link_for_test_") | 76 | --assert (lfs.symlinkattributes"_a_link_for_test_".mode == "link") |
77 | --assert (os.remove"_a_link_for_test_") | ||
77 | 78 | ||
78 | -- Restore access time to current value | 79 | -- Restore access time to current value |
79 | assert (lfs.touch (tmpfile, attrib.access, attrib.modification)) | 80 | assert (lfs.touch (tmpfile, attrib.access, attrib.modification)) |