mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 23:50:45 +01:00
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:
parent
d1f1563aab
commit
1db5866cee
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue