mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 02:53:06 +00:00
Merge branch 'master' into 1.7
This commit is contained in:
@@ -107,6 +107,9 @@ assert(result) -- on non-Windows platforms, mode is always returned as "binary"
|
||||
result, mode = lfs.setmode(f, "text")
|
||||
assert(result and mode == "binary")
|
||||
f:close()
|
||||
local ok, err = pcall(lfs.setmode, f, "binary")
|
||||
assert(not ok, "could setmode on closed file")
|
||||
assert(err:find("closed file"), "bad error message for setmode on closed file")
|
||||
|
||||
io.write(".")
|
||||
io.flush()
|
||||
|
||||
Reference in New Issue
Block a user