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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2014-06-13 11:37:59 +10:00
parent d1f1563aab
commit 1db5866cee

View 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);