Commit 4db7e539 authored by François Perrad's avatar François Perrad
Browse files

fix when no debug

parent ac7671b6
......@@ -39,6 +39,11 @@ read_globals = {
'close',
}
},
debug = {
fields = {
'setcstacklimit',
}
},
}
files['test_lua/000-sanity.t'].ignore = { '111', '113' }
......
......@@ -42,8 +42,6 @@ local has_setmetatable52 = _VERSION >= 'Lua 5.2' or (profile.luajit_compat52 and
local has_upvalueid = _VERSION >= 'Lua 5.2' or jit
local has_upvaluejoin = _VERSION >= 'Lua 5.2' or jit
local debug = require 'debug'
if not debug then
skip_all("no debug")
end
......
......@@ -32,7 +32,7 @@ if not pcall(io.popen, lua .. [[ -e "a=1"]]) then
skip_all "io.popen not supported"
end
plan(12)
plan'no_plan'
do
local f = io.open('lib-320.lua', 'w')
......@@ -109,7 +109,7 @@ do
os.remove('number-320.txt') -- clean up
end
do
if debug then
local f = io.open('dbg-320.txt', 'w')
f:write("print 'ok'\n")
f:write("error 'dbg'\n")
......@@ -123,8 +123,12 @@ do
f:close()
os.remove('dbg-320.txt') -- clean up
else
diag("no debug")
end
done_testing()
-- Local Variables:
-- mode: lua
-- lua-indent-level: 4
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment