From 1db5866ceee567ca75e044550f5ffc8494771e04 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 13 Jun 2014 11:37:59 +1000 Subject: [PATCH] test: fix a path test Test with the right interface, otherwise checking to make sure we didn't call open on any device is a bit pointless. Signed-off-by: Peter Hutterer --- test/path.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/path.c b/test/path.c index 37a1a56a..24f60e01 100644 --- a/test/path.c +++ b/test/path.c @@ -57,14 +57,13 @@ const struct libinput_interface simple_interface = { START_TEST(path_create_NULL) { struct libinput *li; - const struct libinput_interface interface; open_func_count = 0; close_func_count = 0; li = libinput_path_create_context(NULL, NULL); ck_assert(li == NULL); - li = libinput_path_create_context(&interface, NULL); + li = libinput_path_create_context(&simple_interface, NULL); ck_assert(li != NULL); libinput_destroy(li);