From a1b5782e90507ebfc0bfe4eee0ea2a7617ef46c1 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 1 Jan 2017 14:33:13 +0100 Subject: [PATCH] test-awful-client.lua: Wait for c:kill() to be done Signed-off-by: Uli Schlachter --- tests/test-awful-client.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/test-awful-client.lua b/tests/test-awful-client.lua index 86ba04330..90da7f0ba 100644 --- a/tests/test-awful-client.lua +++ b/tests/test-awful-client.lua @@ -214,7 +214,12 @@ table.insert(multi_screen_steps, function() for _, c in ipairs(client.get()) do c:kill() end + if #client.get() == 0 then + return true + end +end) +table.insert(multi_screen_steps, function() for i=1, screen.count() do local s = screen[i] test_client("screen"..i, nil, { @@ -240,6 +245,16 @@ end for _, c in ipairs(client.get()) do c:kill() end +return true +end) + +table.insert(multi_screen_steps, function() +if #client.get() == 0 then + return true +end +end) + +table.insert(multi_screen_steps, function() if screen.count() < 2 then return true end