From db2274eaad181cb617f606628abe71d17dfb44c3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 16 Jan 2014 10:56:01 +1000 Subject: [PATCH] test: don't leak open/closed counts into the next test Signed-off-by: Peter Hutterer --- test/path.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/path.c b/test/path.c index 875cd88e..24f647f2 100644 --- a/test/path.c +++ b/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