From f55dcddbc79620f2dc2bbce0aa0e95570db9bc2c Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 11 Jun 2017 22:56:27 +1000 Subject: [PATCH] tests/extmod/vfs_basic: Allow test to pass on embedded targets. --- tests/extmod/vfs_basic.py | 4 ++-- tests/extmod/vfs_basic.py.exp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/extmod/vfs_basic.py b/tests/extmod/vfs_basic.py index 995874824..4fc67d34b 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 f8ecd07ea..0ae2c2cc9 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']