summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2018-08-25 18:11:10 +0200
committerNoralf Trønnes <noralf@tronnes.org>2018-08-25 20:43:02 +0200
commit39ee12d1ac6ffb105f6ac0994f6169a7bb327cbd (patch)
treee380f4c5259194f9dcf56c9c0618051d1fa97317 /tests
parentd1b588375be0812f6e8d58f1eba1a6c82f91a931 (diff)
Fix os.stat() to use 1970 epoch
Commit 95e70cd0ea6d 'time: Use 1970 epoch' changed epoch for the time module, but not for other users. This patch does the same for the only other core timeutils user: extmod/vfs_fat.c:fat_vfs_stat(). Other timeutils users: cc3200, esp8266 and stm32, are not changed. Ports that don't use long ints, will still get wrong time values from os.stat().
Diffstat (limited to 'tests')
-rw-r--r--tests/extmod/vfs_fat_ramdisk.py.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/extmod/vfs_fat_ramdisk.py.exp b/tests/extmod/vfs_fat_ramdisk.py.exp
index ecae81589..704408cd0 100644
--- a/tests/extmod/vfs_fat_ramdisk.py.exp
+++ b/tests/extmod/vfs_fat_ramdisk.py.exp
@@ -5,7 +5,7 @@ statvfs: (512, 512, 16, 16, 16, 0, 0, 0, 0, 255)
getcwd: /
True
[('foo_file.txt', 32768, 0, 6)]
-stat root: (16384, 0, 0, 0, 0, 0, 0, 0, 0, 0)
+stat root: (16384, 0, 0, 0, 0, 0, 0, 946684800, 946684800, 946684800)
stat file: (32768, 0, 0, 0, 0, 0, 6)
True
True