diff options
| author | tuler <tuler> | 2005-08-18 12:43:05 +0000 |
|---|---|---|
| committer | tuler <tuler> | 2005-08-18 12:43:05 +0000 |
| commit | 55de5925e5e657b9922a784e754c7b9a66b7b669 (patch) | |
| tree | 7ecd64baf63505eee18061207742be9ec69031a0 /tests | |
| parent | e206fd0e63bc98c2804d4e85c4d5376f9d2e82d3 (diff) | |
| download | luafilesystem-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.lua | 12 |
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") | |||
| 44 | f:close() | 44 | f:close() |
| 45 | 45 | ||
| 46 | -- Change access time | 46 | -- Change access time |
| 47 | assert (lfs.touch (tmpfile, 11)) | 47 | assert (lfs.touch (tmpfile, 86401)) |
| 48 | local new_att = assert (lfs.attributes (tmpfile)) | 48 | local new_att = assert (lfs.attributes (tmpfile)) |
| 49 | assert (new_att.access == 11, "could not set access time") | 49 | assert (new_att.access == 86401, "could not set access time") |
| 50 | assert (new_att.modification == 11, "could not set modification time") | 50 | assert (new_att.modification == 86401, "could not set modification time") |
| 51 | 51 | ||
| 52 | -- Change access and modification time | 52 | -- Change access and modification time |
| 53 | assert (lfs.touch (tmpfile, 33, 22)) | 53 | assert (lfs.touch (tmpfile, 86403, 86402)) |
| 54 | local new_att = assert (lfs.attributes (tmpfile)) | 54 | local new_att = assert (lfs.attributes (tmpfile)) |
| 55 | assert (new_att.access == 33, "could not set access time") | 55 | assert (new_att.access == 86403, "could not set access time") |
| 56 | assert (new_att.modification == 22, "could not set modification time") | 56 | assert (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 |
| 59 | assert (lfs.touch (tmpfile)) | 59 | assert (lfs.touch (tmpfile)) |
