lua-users home
lua-l archive

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


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))