From 57a64a5cfee378f331ae425945a8026bcc668a8b Mon Sep 17 00:00:00 2001 From: tomas Date: Thu, 7 Jun 2007 01:28:08 +0000 Subject: Adding function symlinkatributes. Updating version to 1.3.0 --- tests/test.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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)) 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_") + -- Restore access time to current value assert (lfs.touch (tmpfile, attrib.access, attrib.modification)) new_att = assert (lfs.attributes (tmpfile)) -- cgit v1.2.3-55-g6feb