aboutsummaryrefslogtreecommitdiff
path: root/testes/files.lua
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-12-27 12:09:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-12-27 12:09:11 -0300
commit12b6f610b0f1b4157c04f0db264f1f1d0634709b (patch)
tree198881cf4ac938aa9082fe7781d575e359d9bf09 /testes/files.lua
parente81f586001d767c8de9b760ae2e2c3b5da1542c6 (diff)
downloadlua-12b6f610b0f1b4157c04f0db264f1f1d0634709b.tar.gz
lua-12b6f610b0f1b4157c04f0db264f1f1d0634709b.tar.bz2
lua-12b6f610b0f1b4157c04f0db264f1f1d0634709b.zip
Several tweaks in the garbage collector
- back with step size in collectgarbage("step") - adjustments in defaults for some GC parameters - adjustments in 'luaO_codeparam'
Diffstat (limited to 'testes/files.lua')
-rw-r--r--testes/files.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/testes/files.lua b/testes/files.lua
index 2582406f..4f925f50 100644
--- a/testes/files.lua
+++ b/testes/files.lua
@@ -74,6 +74,8 @@ io.input(io.stdin); io.output(io.stdout);
74 74
75os.remove(file) 75os.remove(file)
76assert(not loadfile(file)) 76assert(not loadfile(file))
77-- Lua code cannot use chunks with fixed buffers
78checkerr("invalid mode", load, "", "", "B")
77checkerr("", dofile, file) 79checkerr("", dofile, file)
78assert(not io.open(file)) 80assert(not io.open(file))
79io.output(file) 81io.output(file)