summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-06-11 22:56:27 +1000
committerDamien George <damien.p.george@gmail.com>2017-06-11 22:56:27 +1000
commitf55dcddbc79620f2dc2bbce0aa0e95570db9bc2c (patch)
tree693b6f525787724b3d371d971fe4d9f2fe1edc2e /tests
parent0a7735f1a67e7c2d6f59205f8d57fca2449cec93 (diff)
downloadmicropython-f55dcddbc79620f2dc2bbce0aa0e95570db9bc2c.tar.gz
micropython-f55dcddbc79620f2dc2bbce0aa0e95570db9bc2c.zip
tests/extmod/vfs_basic: Allow test to pass on embedded targets.
Diffstat (limited to 'tests')
-rw-r--r--tests/extmod/vfs_basic.py4
-rw-r--r--tests/extmod/vfs_basic.py.exp2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/extmod/vfs_basic.py b/tests/extmod/vfs_basic.py
index 9958748244..4fc67d34b2 100644
--- a/tests/extmod/vfs_basic.py
+++ b/tests/extmod/vfs_basic.py
@@ -56,8 +56,8 @@ for path in uos.listdir('/'):
# stat root dir
print(uos.stat('/'))
-# statvfs root dir
-print(uos.statvfs('/'))
+# statvfs root dir; verify that f_namemax has a sensible size
+print(uos.statvfs('/')[9] >= 32)
# getcwd when in root dir
print(uos.getcwd())
diff --git a/tests/extmod/vfs_basic.py.exp b/tests/extmod/vfs_basic.py.exp
index f8ecd07eaa..0ae2c2cc97 100644
--- a/tests/extmod/vfs_basic.py.exp
+++ b/tests/extmod/vfs_basic.py.exp
@@ -1,5 +1,5 @@
(16384, 0, 0, 0, 0, 0, 0, 0, 0, 0)
-(0, 0, 0, 0, 0, 0, 0, 0, 0, 4096)
+True
/
1 mount False False
['test_mnt']