micropython/tests/extmod/vfs_posix.py.exp
Christian Walther e3ba6f952b extmod/vfs_posix: Fix relative root path.
A VfsPosix created with a relative root path would get confused when
chdir() was called on it and become unable to properly resolve absolute
paths, because changing directories effectively shifted its root. The
simplest fix for that would be to say "don't do that", but since the
unit tests themselves do it, fix it by making a relative path absolute
before storing it.

Signed-off-by: Christian Walther <cwalther@gmx.ch>
2023-10-19 16:21:08 +02:00

18 lines
209 B
Plaintext

/
True
<class 'tuple'>
<class 'list'>
<io.TextIOWrapper 2>
hello
next_file_no <= base_file_no True
['test2']
['test2']
<class 'tuple'>
<class 'str'>
<class 'bytes'>
hello
[]
remove OSError
False
rmdir OSError