diff options
Diffstat (limited to 'tests/check_session.c')
-rw-r--r-- | tests/check_session.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/check_session.c b/tests/check_session.c index f996df5..d6895af 100644 --- a/tests/check_session.c +++ b/tests/check_session.c @@ -25,16 +25,6 @@ #include <check.h> #include "lib.h" -static void setup(void) -{ - /* Silence libsigrokdecode while the unit tests run. */ - srd_log_loglevel_set(SRD_LOG_NONE); -} - -static void teardown(void) -{ -} - /* * Check whether srd_session_new() works. * If it returns != SRD_OK (or segfaults) this test will fail. @@ -242,7 +232,7 @@ Suite *suite_session(void) s = suite_create("session"); tc = tcase_create("new_destroy"); - tcase_add_checked_fixture(tc, setup, teardown); + tcase_add_checked_fixture(tc, srdtest_setup, srdtest_teardown); tcase_add_test(tc, test_session_new); tcase_add_test(tc, test_session_new_bogus); tcase_add_test(tc, test_session_new_multiple); @@ -251,7 +241,7 @@ Suite *suite_session(void) suite_add_tcase(s, tc); tc = tcase_create("config"); - tcase_add_checked_fixture(tc, setup, teardown); + tcase_add_checked_fixture(tc, srdtest_setup, srdtest_teardown); tcase_add_test(tc, test_session_metadata_set); tcase_add_test(tc, test_session_metadata_set_bogus); suite_add_tcase(s, tc); |