From 55de5925e5e657b9922a784e754c7b9a66b7b669 Mon Sep 17 00:00:00 2001 From: tuler Date: Thu, 18 Aug 2005 12:43:05 +0000 Subject: [PATCH] access time 11, 22 and 33 do not work on windows --- tests/test.lua | 12 ++++++------ 1 file 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") f:close() -- Change access time -assert (lfs.touch (tmpfile, 11)) +assert (lfs.touch (tmpfile, 86401)) local new_att = assert (lfs.attributes (tmpfile)) -assert (new_att.access == 11, "could not set access time") -assert (new_att.modification == 11, "could not set modification time") +assert (new_att.access == 86401, "could not set access time") +assert (new_att.modification == 86401, "could not set modification time") -- Change access and modification time -assert (lfs.touch (tmpfile, 33, 22)) +assert (lfs.touch (tmpfile, 86403, 86402)) local new_att = assert (lfs.attributes (tmpfile)) -assert (new_att.access == 33, "could not set access time") -assert (new_att.modification == 22, "could not set modification time") +assert (new_att.access == 86403, "could not set access time") +assert (new_att.modification == 86402, "could not set modification time") -- Restore access time to current value assert (lfs.touch (tmpfile))