diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test.lua b/test/test.lua index 53a7cb24..8a768731 100644 --- a/test/test.lua +++ b/test/test.lua @@ -759,6 +759,11 @@ function test_lfs_ext_walk_symlinks() os.execute('rm -r ' .. dir) end +function test_lfs_ext_walk_root() + local filename = lfs.walk('/', nil, 0, true)() + assert(not filename:find('lfs_ext.lua:'), 'coroutine error') +end + function test_lfs_ext_abs_path() assert_equal(lfs.abspath('bar', '/foo'), '/foo/bar') assert_equal(lfs.abspath('./bar', '/foo'), '/foo/bar') |