tests: Disable test-menubar.lua where needed

This test runs into an lgi bug that causes awesome to segfault. Work
around this by just disabling the test where needed.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-06-23 11:31:54 +02:00 committed by Emmanuel Lepage Vallee
parent 941c997314
commit c9c02aef67
1 changed files with 11 additions and 0 deletions

View File

@ -3,6 +3,17 @@
local runner = require("_runner")
local menubar = require("menubar")
-- XXX We are building Lua 5.3 with -DLUA_USE_APICHECK=1 and this catches some
-- bugs in lgi. Thus, do not run this test with Lua 5.3 until lgi is fixed.
-- We run into the same bug when doing code-coverage analysis, supposedly
-- because the additional GC activity means that something which is GC-able when
-- it should not gets collected too early
if _VERSION == "Lua 5.3" or debug.gethook() then
print("Skipping this test since it would just fail.")
runner.run_steps { function() return true end }
return
end
runner.run_steps {
function(count)
-- Just show the menubar and hide it.