From: Michael Stapelberg Date: Mon, 9 Jan 2012 19:15:59 +0000 (+0000) Subject: tests: use open_window to avoid motion notifies which in turn trigger endless loops X-Git-Tag: 4.2~147^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a4a59a797fa4a0ba98a490f95fd7b40d447c97fc;p=i3%2Fi3 tests: use open_window to avoid motion notifies which in turn trigger endless loops Using 'open' will not create an X11 window (while open_window does), so we will get spurious motion notify events when switching focus, leading to endless loops. --- diff --git a/testcases/t/503-workspace.t b/testcases/t/503-workspace.t index f42717a2..7122cb34 100644 --- a/testcases/t/503-workspace.t +++ b/testcases/t/503-workspace.t @@ -12,12 +12,12 @@ use i3test; is(focused_ws, '1', 'starting on workspace 1'); # ensure workspace 1 stays open -cmd 'open'; +open_window; cmd 'focus output right'; is(focused_ws, '2', 'workspace 2 on second output'); # ensure workspace 2 stays open -cmd 'open'; +open_window; cmd 'focus output right'; is(focused_ws, '1', 'back on workspace 1'); @@ -25,8 +25,8 @@ is(focused_ws, '1', 'back on workspace 1'); # We don’t use fresh_workspace with named workspaces here since they come last # when using 'workspace next'. cmd 'workspace 5'; -# ensure workspace $tmp stays open -cmd 'open'; +# ensure workspace 5 stays open +open_window; ################################################################################ # Use workspace next and verify the correct order.