aboutsummaryrefslogtreecommitdiff
path: root/tests/test.lua
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-06-21 10:48:11 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-06-21 10:48:11 +0300
commita332bde584756b14298f51e913bdc309f87e7ff8 (patch)
treebed97d0cefa34dba06344b99d1abc9b2e2c7e2cb /tests/test.lua
parent81e5b165bf324689777b967143c751786c405ce4 (diff)
parent7fae11cdb5a129ce798df462365b7ce60c5f4d62 (diff)
downloadluafilesystem-a332bde584756b14298f51e913bdc309f87e7ff8.tar.gz
luafilesystem-a332bde584756b14298f51e913bdc309f87e7ff8.tar.bz2
luafilesystem-a332bde584756b14298f51e913bdc309f87e7ff8.zip
Merge branch 'master' into 1.7
Diffstat (limited to '')
-rw-r--r--tests/test.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 5872717..193e0bd 100644
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -107,6 +107,9 @@ assert(result) -- on non-Windows platforms, mode is always returned as "binary"
107result, mode = lfs.setmode(f, "text") 107result, mode = lfs.setmode(f, "text")
108assert(result and mode == "binary") 108assert(result and mode == "binary")
109f:close() 109f:close()
110local ok, err = pcall(lfs.setmode, f, "binary")
111assert(not ok, "could setmode on closed file")
112assert(err:find("closed file"), "bad error message for setmode on closed file")
110 113
111io.write(".") 114io.write(".")
112io.flush() 115io.flush()