Skip to content

Commit 670376c

Browse files
hosakadpgeorge
authored andcommitted
tests/extmod/vfs_fat_ramdisk: Add test for VFS.statvfs().
1 parent dcf14c1 commit 670376c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

tests/extmod/vfs_fat_ramdisk.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def ioctl(self, op, arg):
4545
assert b"hello!" not in bdev.data
4646

4747
vfs = uos.VfsFat(bdev, "/ramdisk")
48+
print("statvfs:", vfs.statvfs("/ramdisk"))
4849

4950
print("getcwd:", vfs.getcwd())
5051

tests/extmod/vfs_fat_ramdisk.py.exp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
statvfs: (512, 512, 14, 14, 14, 0, 0, 0, 0, 255)
12
getcwd: /ramdisk
23
hello!
34
getcwd: /ramdisk/foo_dir

0 commit comments

Comments
 (0)