Skip to content
Snippets Groups Projects
Commit 670376c5 authored by Alex March's avatar Alex March Committed by Damien George
Browse files

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

parent dcf14c1b
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,7 @@ assert b"FOO_FILETXT" not in bdev.data ...@@ -45,6 +45,7 @@ assert b"FOO_FILETXT" not in bdev.data
assert b"hello!" not in bdev.data assert b"hello!" not in bdev.data
vfs = uos.VfsFat(bdev, "/ramdisk") vfs = uos.VfsFat(bdev, "/ramdisk")
print("statvfs:", vfs.statvfs("/ramdisk"))
print("getcwd:", vfs.getcwd()) print("getcwd:", vfs.getcwd())
......
statvfs: (512, 512, 14, 14, 14, 0, 0, 0, 0, 255)
getcwd: /ramdisk getcwd: /ramdisk
hello! hello!
getcwd: /ramdisk/foo_dir getcwd: /ramdisk/foo_dir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment