aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 3522bee..1f4eb09 100644
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -44,16 +44,16 @@ local f = io.open(tmpfile, "w")
44f:close() 44f:close()
45 45
46-- Change access time 46-- Change access time
47assert (lfs.touch (tmpfile, 11)) 47assert (lfs.touch (tmpfile, 86401))
48local new_att = assert (lfs.attributes (tmpfile)) 48local new_att = assert (lfs.attributes (tmpfile))
49assert (new_att.access == 11, "could not set access time") 49assert (new_att.access == 86401, "could not set access time")
50assert (new_att.modification == 11, "could not set modification time") 50assert (new_att.modification == 86401, "could not set modification time")
51 51
52-- Change access and modification time 52-- Change access and modification time
53assert (lfs.touch (tmpfile, 33, 22)) 53assert (lfs.touch (tmpfile, 86403, 86402))
54local new_att = assert (lfs.attributes (tmpfile)) 54local new_att = assert (lfs.attributes (tmpfile))
55assert (new_att.access == 33, "could not set access time") 55assert (new_att.access == 86403, "could not set access time")
56assert (new_att.modification == 22, "could not set modification time") 56assert (new_att.modification == 86402, "could not set modification time")
57 57
58-- Restore access time to current value 58-- Restore access time to current value
59assert (lfs.touch (tmpfile)) 59assert (lfs.touch (tmpfile))