tests: Try to detect client "manage" signal race conditions.

See #1028
This commit is contained in:
Emmanuel Lepage Vallee 2016-08-28 22:27:14 -04:00
parent e29a2d3ac9
commit a0b40bfd8f
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,13 @@ local tests = {}
local tb_height = awful.util.round(beautiful.get_font_height() * 1.5) local tb_height = awful.util.round(beautiful.get_font_height() * 1.5)
-- local border_width = beautiful.border_width -- local border_width = beautiful.border_width
-- Detect "manage" race conditions
local real_apply = awful.rules.apply
function awful.rules.apply(c)
assert(#c:tags() == 0)
return real_apply(c)
end
local function test_rule(rule) local function test_rule(rule)
rule.rule = rule.rule or {} rule.rule = rule.rule or {}