From a4a59a797fa4a0ba98a490f95fd7b40d447c97fc Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 9 Jan 2012 19:15:59 +0000 Subject: [PATCH] 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. --- testcases/t/503-workspace.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.