aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorcarregal <carregal>2008-03-10 15:28:50 +0000
committercarregal <carregal>2008-03-10 15:28:50 +0000
commit0154141e3fdafb69426035f5e1d949d58ddc58e9 (patch)
tree1c68fc4f4c358b290c310cfdfa740f223b7ff599 /tests
parentbb9cf83617a492d003debc0c140bcfaf598a63b5 (diff)
downloadluafilesystem-0154141e3fdafb69426035f5e1d949d58ddc58e9.tar.gz
luafilesystem-0154141e3fdafb69426035f5e1d949d58ddc58e9.tar.bz2
luafilesystem-0154141e3fdafb69426035f5e1d949d58ddc58e9.zip
Fixed bug in the Windows tests (patch by Shmuel Zeigerman)
Diffstat (limited to 'tests')
-rw-r--r--tests/test.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 4c09020..882838b 100644
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -80,10 +80,10 @@ end
80if lfs.setmode then 80if lfs.setmode then
81 -- Checking text/binary modes (works only in Windows) 81 -- Checking text/binary modes (works only in Windows)
82 local f = io.open(tmpfile, "w") 82 local f = io.open(tmpfile, "w")
83 local mode = lfs.setmode(f, "binary") 83 local result, mode = lfs.setmode(f, "binary")
84 assert(mode == "text") 84 assert(result and mode == "text")
85 mode = lfs.setmode(f, "text") 85 result, mode = lfs.setmode(f, "text")
86 assert(mode == "binary") 86 assert(result and mode == "binary")
87 f:close() 87 f:close()
88end 88end
89 89