Commit cda09727 authored by Damien George's avatar Damien George
Browse files

tests/extmod/vfs_fat: Add test for ilistdir of a non-existent directory.

parent f95e4e77
......@@ -93,3 +93,9 @@ uos.umount(vfs)
vfs = uos.VfsFat(bdev)
print(list(vfs.ilistdir(b"")))
# list a non-existent directory
try:
vfs.ilistdir(b"no_exist")
except OSError as e:
print('ENOENT:', e.args[0] == uerrno.ENOENT)
......@@ -13,3 +13,4 @@ getcwd: /foo_dir
True
getcwd: /
[(b'foo_file.txt', 32768, 0), (b'foo_dir', 16384, 0)]
ENOENT: True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment