From: Michael Stapelberg Date: Thu, 13 Feb 2014 20:05:42 +0000 (+0100) Subject: t/130-close-empty-split: clean up old workspace X-Git-Tag: 4.8~117 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=62a4237ed0b620d6da84330309c94e7f8901f299;p=i3%2Fi3 t/130-close-empty-split: clean up old workspace 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. --- 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