diff options
Diffstat (limited to 'testes/errors.lua')
| -rw-r--r-- | testes/errors.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/testes/errors.lua b/testes/errors.lua index f9623b1d..88918df7 100644 --- a/testes/errors.lua +++ b/testes/errors.lua | |||
| @@ -530,10 +530,9 @@ local function testrep (init, rep, close, repc, finalresult) | |||
| 530 | if (finalresult) then | 530 | if (finalresult) then |
| 531 | assert(res() == finalresult) | 531 | assert(res() == finalresult) |
| 532 | end | 532 | end |
| 533 | s = init .. string.rep(rep, 10000) | 533 | s = init .. string.rep(rep, 500) |
| 534 | local res, msg = load(s) -- 10000 levels not ok | 534 | local res, msg = load(s) -- 500 levels not ok |
| 535 | assert(not res and (string.find(msg, "too many registers") or | 535 | assert(not res and string.find(msg, "too many")) |
| 536 | string.find(msg, "stack overflow"))) | ||
| 537 | end | 536 | end |
| 538 | 537 | ||
| 539 | testrep("local a; a", ",a", "= 1", ",1") -- multiple assignment | 538 | testrep("local a; a", ",a", "= 1", ",1") -- multiple assignment |
