test: fix a path test
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 13 Jun 2014 01:37:59 +0000 (11:37 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 13 Jun 2014 01:48:53 +0000 (11:48 +1000)
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 <peter.hutterer@who-t.net>
test/path.c

index 37a1a56a9fce532ae417884ac208b8e1623928e7..24f60e01e116d41181530e6b4e6e111616e17c16 100644 (file)
@@ -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);