tests/extmod/vfs_fat: Add test for ilistdir of a non-existent directory.
This commit is contained in:
parent
f95e4e7782
commit
cda09727b4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue