lua54/main_test.patch
Callum Farmer 7313e3f5c0 Accepting request 943253 from home:gmbr3:Lua
- Re-enable readline support in Lua, the way to do this changed
  in Lua 5.4
- Subsequently, update main_test.patch to ignore another test

OBS-URL: https://build.opensuse.org/request/show/943253
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua54?expand=0&rev=41
2021-12-30 18:49:26 +00:00

29 lines
518 B
Diff

--- a/main.lua
+++ b/main.lua
@@ -47,7 +47,7 @@
assert(string.sub(s, -1) == "\n")
local t = getoutput()
for line in string.gmatch(s, ".-\n") do
- assert(string.find(t, line, 1, true))
+ -- assert(string.find(t, line, 1, true))
end
end
@@ -307,11 +307,11 @@
]]
RUN([[lua -e "%s" -i < %s > %s]], prompt, prog, out)
local t = getoutput()
-assert(string.find(t, [[
-1 --
-2a = 2
-3
-]], 1, true))
+-- assert(string.find(t, [[
+-- 1 --
+-- 2a = 2
+-- 3
+-- ]], 1, true))
-- test for error objects