lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I can reproduce on Ubuntu 20.04:

gcc -v: gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)

josh@joshuas3 at ~/Downloads/lua-5.4.2 $ src/lua lua-5.4.2-tests/main.lua
testing stand-alone interpreter
progname: src/lua
Lua 5.4.2  Copyright (C) 1994-2020 Lua.org, PUC-Rio
(temporary program file used in these tests: /tmp/lua_eoFfk5)
testing warnings
src/lua: lua-5.4.2-tests/main.lua:310: assertion failed!
stack traceback:
	[C]: in function 'assert'
	lua-5.4.2-tests/main.lua:310: in main chunk
	[C]: in ?


On 11/28/20 1:20 PM, Stefan Waldhör wrote:
For Lua 5.4.2-rc1 I am seeing an error in main.lua test file (Ubuntu 18.04.5 LTS using gcc 7.5.0). Can someone reproduce this?

***** FILE 'main.lua'*****

testing stand-alone interpreter

(temporary program file used in these tests: /tmp/lua_Ueqsb7)

testing warnings

lua: main.lua:308: assertion failed!

stack traceback:

[C]: in function 'assert'

main.lua:308: in main chunk

(...tail calls...)

all.lua:155: in main chunk

[C]: in ?

And the test for this reads as follows:

prepfile[[ --

a = 2

]]

RUN([[lua -e "%s" -i < %s > %s]], prompt, prog, out)

local t = getoutput()

assert(string.find(t, [[

1 --

2a = 2

3

]], 1, true))