mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-28 10:50:07 +01:00
test: don't leak open/closed counts into the next test
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3444b29ceb
commit
db2274eaad
1 changed files with 18 additions and 0 deletions
18
test/path.c
18
test/path.c
|
|
@ -72,6 +72,9 @@ START_TEST(path_create_NULL)
|
|||
|
||||
ck_assert_int_eq(open_func_count, 0);
|
||||
ck_assert_int_eq(close_func_count, 0);
|
||||
|
||||
open_func_count = 0;
|
||||
close_func_count = 0;
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
@ -91,6 +94,9 @@ START_TEST(path_create_invalid)
|
|||
|
||||
libinput_destroy(li);
|
||||
ck_assert_int_eq(close_func_count, 0);
|
||||
|
||||
open_func_count = 0;
|
||||
close_func_count = 0;
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
@ -126,6 +132,9 @@ START_TEST(path_create_destroy)
|
|||
libevdev_uinput_destroy(uinput);
|
||||
libinput_destroy(li);
|
||||
ck_assert_int_eq(close_func_count, 1);
|
||||
|
||||
open_func_count = 0;
|
||||
close_func_count = 0;
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
@ -241,6 +250,9 @@ START_TEST(path_suspend)
|
|||
|
||||
libevdev_uinput_destroy(uinput);
|
||||
libinput_destroy(li);
|
||||
|
||||
open_func_count = 0;
|
||||
close_func_count = 0;
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
@ -277,6 +289,9 @@ START_TEST(path_double_suspend)
|
|||
|
||||
libevdev_uinput_destroy(uinput);
|
||||
libinput_destroy(li);
|
||||
|
||||
open_func_count = 0;
|
||||
close_func_count = 0;
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
@ -313,6 +328,9 @@ START_TEST(path_double_resume)
|
|||
|
||||
libevdev_uinput_destroy(uinput);
|
||||
libinput_destroy(li);
|
||||
|
||||
open_func_count = 0;
|
||||
close_func_count = 0;
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue