diff options
| author | Damien George | 2017-06-07 15:17:45 +1000 |
|---|---|---|
| committer | Damien George | 2017-06-07 15:17:45 +1000 |
| commit | f6ef8e3f17222a397e02f93a8b0d283e0f6c9793 (patch) | |
| tree | 05fe7ce2f89ee241251cef5a7f6ae820ad1737c9 /tests/extmod | |
| parent | 551a7317554b84651b0c3fd97f495753c17042ad (diff) | |
extmod/vfs: Allow to statvfs the root directory.
Diffstat (limited to 'tests/extmod')
| -rw-r--r-- | tests/extmod/vfs_basic.py | 5 | ||||
| -rw-r--r-- | tests/extmod/vfs_basic.py.exp | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/extmod/vfs_basic.py b/tests/extmod/vfs_basic.py index a3b2f3c29..fc016b8d5 100644 --- a/tests/extmod/vfs_basic.py +++ b/tests/extmod/vfs_basic.py @@ -57,6 +57,9 @@ for path in uos.listdir('/'): # stat root dir print(uos.stat('/')) +# statvfs root dir +print(uos.statvfs('/')) + # getcwd when in root dir print(uos.getcwd()) @@ -128,6 +131,8 @@ except OSError: # root dir uos.mount(Filesystem(3), '/') +print(uos.stat('/')) +print(uos.statvfs('/')) print(uos.listdir()) open('test') diff --git a/tests/extmod/vfs_basic.py.exp b/tests/extmod/vfs_basic.py.exp index 8a23aa8ae..f8ecd07ea 100644 --- a/tests/extmod/vfs_basic.py.exp +++ b/tests/extmod/vfs_basic.py.exp @@ -1,4 +1,5 @@ (16384, 0, 0, 0, 0, 0, 0, 0, 0, 0) +(0, 0, 0, 0, 0, 0, 0, 0, 0, 4096) / 1 mount False False ['test_mnt'] @@ -36,6 +37,9 @@ OSError 2 umount OSError 3 mount False False +(16384, 0, 0, 0, 0, 0, 0, 0, 0, 0) +3 statvfs / +(3,) 3 ilistdir / ['a3'] 3 open test r |
