Skip to content

Commit 32cb0b5

Browse files
committed
By default, don't replay events when in interactive mode in tests
1 parent 14843b5 commit 32cb0b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ end
6262
rectangle = Ref(XCB.xcb_rectangle_t(20, 20, 60, 60))
6363
interactive = ENV["DISPLAY"] ":99"
6464

65-
function test()
65+
function test(; replay_events = !interactive)
6666
wm = XWindowManager()
6767
screen = current_screen(wm)
6868
win = XCBWindow(wm; screen, x=0, y=1000, border_width=50, window_title="XCB window", icon_title="XCB", attributes=[XCB.XCB_CW_BACK_PIXEL], values=[screen.black_pixel])
@@ -101,6 +101,7 @@ function test()
101101

102102
events = save_history(wm, queue)
103103

104+
replay_events || return
104105
@info "Replaying events..."
105106
wm = XWindowManager()
106107
screen = current_screen(wm)

0 commit comments

Comments
 (0)