summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex March <alex.march.dev@gmail.com>2016-09-25 21:52:52 +0100
committerDamien George <damien.p.george@gmail.com>2016-09-27 13:48:58 +1000
commit670376c5cb3b687c60688cf18266898b2faef2e2 (patch)
treef157e7289187c856cbc9ef1111c311977c8c8bb8
parentdcf14c1b18883e72c1904264cb73da0fbd87d495 (diff)
tests/extmod/vfs_fat_ramdisk: Add test for VFS.statvfs().
-rw-r--r--tests/extmod/vfs_fat_ramdisk.py1
-rw-r--r--tests/extmod/vfs_fat_ramdisk.py.exp1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/extmod/vfs_fat_ramdisk.py b/tests/extmod/vfs_fat_ramdisk.py
index 57c8eeba8..f470dbcfe 100644
--- a/tests/extmod/vfs_fat_ramdisk.py
+++ b/tests/extmod/vfs_fat_ramdisk.py
@@ -45,6 +45,7 @@ assert b"FOO_FILETXT" not in bdev.data
assert b"hello!" not in bdev.data
vfs = uos.VfsFat(bdev, "/ramdisk")
+print("statvfs:", vfs.statvfs("/ramdisk"))
print("getcwd:", vfs.getcwd())
diff --git a/tests/extmod/vfs_fat_ramdisk.py.exp b/tests/extmod/vfs_fat_ramdisk.py.exp
index b6079ad3b..fd893b6e4 100644
--- a/tests/extmod/vfs_fat_ramdisk.py.exp
+++ b/tests/extmod/vfs_fat_ramdisk.py.exp
@@ -1,3 +1,4 @@
+statvfs: (512, 512, 14, 14, 14, 0, 0, 0, 0, 255)
getcwd: /ramdisk
hello!
getcwd: /ramdisk/foo_dir