summaryrefslogtreecommitdiff
path: root/test/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/log.c')
-rw-r--r--test/log.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/log.c b/test/log.c
index 6ce5e7f4..a56af151 100644
--- a/test/log.c
+++ b/test/log.c
@@ -125,11 +125,13 @@ START_TEST(log_priority)
libinput_path_add_device(li, "/tmp");
- ck_assert_int_eq(log_handler_called, 0);
+ ck_assert_int_eq(log_handler_called, 1);
libinput_log_set_priority(li, LIBINPUT_LOG_PRIORITY_INFO);
- libinput_path_add_device(li, "/tmp");
- ck_assert_int_gt(log_handler_called, 0);
+ /* event0 is usually Lid Switch which prints an info that
+ we don't handle it */
+ libinput_path_add_device(li, "/dev/input/event0");
+ ck_assert_int_gt(log_handler_called, 1);
log_handler_called = 0;