diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-20 13:42:26 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-20 13:42:26 -0300 |
commit | be78aeae4c429d7d68af3a3e1b0cf8e52fcff160 (patch) | |
tree | e81d25014e238f589997f109ba10a875c3a875dc /testes/gc.lua | |
parent | 5bc47fe83087e0686f4639d031801837846e4c65 (diff) | |
download | lua-be78aeae4c429d7d68af3a3e1b0cf8e52fcff160.tar.gz lua-be78aeae4c429d7d68af3a3e1b0cf8e52fcff160.tar.bz2 lua-be78aeae4c429d7d68af3a3e1b0cf8e52fcff160.zip |
Default for warnings changed to "off"
Warnings are mostly a tool to help developers (e.g., by showing hidden
error messages); regular users usually don't need to see them.
Diffstat (limited to 'testes/gc.lua')
-rw-r--r-- | testes/gc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/gc.lua b/testes/gc.lua index 34854d6f..bb4e3493 100644 --- a/testes/gc.lua +++ b/testes/gc.lua | |||
@@ -369,7 +369,7 @@ if T then | |||
369 | s[n] = i | 369 | s[n] = i |
370 | end | 370 | end |
371 | 371 | ||
372 | warn("@store") | 372 | warn("@on"); warn("@store") |
373 | collectgarbage() | 373 | collectgarbage() |
374 | assert(string.find(_WARN, "error in __gc metamethod")) | 374 | assert(string.find(_WARN, "error in __gc metamethod")) |
375 | assert(string.match(_WARN, "@(.-)@") == "expected"); _WARN = nil | 375 | assert(string.match(_WARN, "@(.-)@") == "expected"); _WARN = nil |