aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authortuler <tuler>2005-08-18 12:43:05 +0000
committertuler <tuler>2005-08-18 12:43:05 +0000
commit55de5925e5e657b9922a784e754c7b9a66b7b669 (patch)
tree7ecd64baf63505eee18061207742be9ec69031a0 /tests
parente206fd0e63bc98c2804d4e85c4d5376f9d2e82d3 (diff)
downloadluafilesystem-55de5925e5e657b9922a784e754c7b9a66b7b669.tar.gz
luafilesystem-55de5925e5e657b9922a784e754c7b9a66b7b669.tar.bz2
luafilesystem-55de5925e5e657b9922a784e754c7b9a66b7b669.zip
access time 11, 22 and 33 do not work on windows
Diffstat (limited to 'tests')
-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))