diff options
-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)) |