test: fix a lid test
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 22 May 2017 04:03:38 +0000 (14:03 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 23 May 2017 03:03:39 +0000 (13:03 +1000)
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 <peter.hutterer@who-t.net>
test/test-lid.c

index 258f8e3d2e568ecad6e94fa4fa154217f5f5dacf..52542224b4722af5d51590fea40dfd00831015a6 100644 (file)
@@ -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);