From 62a4237ed0b620d6da84330309c94e7f8901f299 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 13 Feb 2014 21:05:42 +0100 Subject: [PATCH] t/130-close-empty-split: clean up old workspace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This hopefully increases the reliability of the test. Empty containers created by “open” sometimes get spurious UnmapNotify events, and in at least one run, this test failed because of such an event. --- testcases/t/130-close-empty-split.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testcases/t/130-close-empty-split.t b/testcases/t/130-close-empty-split.t index bcc83896..d1433088 100644 --- a/testcases/t/130-close-empty-split.t +++ b/testcases/t/130-close-empty-split.t @@ -53,6 +53,11 @@ cmd 'kill'; ($nodes, $focus) = get_ws_content($tmp); isnt($nodes->[0]->{id}, $split, 'split container closed'); +# clean up the remaining containers to ensure this workspace will be garbage +# collected. +cmd 'kill'; +cmd 'kill'; + ############################################################## # same thing but this time we are moving the cons away instead # of killing them