tests/extmod/vfs_fat_ramdisk: Add test for VFS.statvfs().

zephyr-rebase
Alex March 2016-09-25 21:52:52 +01:00 committed by Damien George
parent dcf14c1b18
commit 670376c5cb
2 changed files with 2 additions and 0 deletions

View File

@ -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())

View File

@ -1,3 +1,4 @@
statvfs: (512, 512, 14, 14, 14, 0, 0, 0, 0, 255)
getcwd: /ramdisk
hello!
getcwd: /ramdisk/foo_dir