Open saighost opened 4 days ago
fs.create_directories
means recursively create directories. This test code should not fail, if it fails, it means there is a bug in gcc or mingw.
Remove test:test_1 function, the test_2 will pass. I guess gulrak/filesystem library is not synchronous.
才发现是中国的。 测试的时候在test里加了个打印create_directories的返回值,一个true一个false。 应该是test2刚开始的时候temp还没删掉,等运行到28行的时候已经被删掉了,导致错误。 不过这种错误在不同环境中可能出现在不同的地方。
Error info:
I check the dir, 'temp' in not found. Change code at test_filewatch.lua:18
local root = fs.absolute("./temp/"):lexically_normal()
tolocal root = fs.absolute("./"):lexically_normal()
then test all pass.