From 3f6b97d4c4c700b8c22988ed551fa199330d2b59 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 22 May 2017 14:03:38 +1000 Subject: test: fix a lid test We were checking for the empty queue on the wrong context, the default context got drained a few lines above. Signed-off-by: Peter Hutterer --- test/test-lid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test-lid.c b/test/test-lid.c index 258f8e3..5254222 100644 --- a/test/test-lid.c +++ b/test/test-lid.c @@ -499,7 +499,7 @@ START_TEST(lid_update_hw_on_key) LIBINPUT_SWITCH_LID, LIBINPUT_SWITCH_STATE_OFF); libinput_event_destroy(event); - litest_assert_empty_queue(li); + litest_assert_empty_queue(li2); libinput_unref(li2); litest_delete_device(keyboard); -- cgit v1.2.3