summaryrefslogtreecommitdiff
path: root/tests/check_core.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-08-14 19:30:54 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-08-14 19:30:54 +0200
commit28c3c217cc70cf2eba41dbca2954c5d8382802d7 (patch)
tree452fce7be8b41c149a8e05679c629432269bc8cb /tests/check_core.c
parentd841d5b26f2134143fc80c9898522d13387b7cc8 (diff)
downloadlibsigrokdecode-28c3c217cc70cf2eba41dbca2954c5d8382802d7.tar.gz
libsigrokdecode-28c3c217cc70cf2eba41dbca2954c5d8382802d7.zip
tests: Factor out srdtest_setup() / srdtest_teardown().
Diffstat (limited to 'tests/check_core.c')
-rw-r--r--tests/check_core.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/check_core.c b/tests/check_core.c
index e5b7b35..3b3d022 100644
--- a/tests/check_core.c
+++ b/tests/check_core.c
@@ -23,16 +23,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 various basic init related things.
*
@@ -104,7 +94,7 @@ Suite *suite_core(void)
s = suite_create("core");
tc = tcase_create("init_exit");
- tcase_add_checked_fixture(tc, setup, teardown);
+ tcase_add_checked_fixture(tc, srdtest_setup, srdtest_teardown);
tcase_add_test(tc, test_init_exit);
tcase_add_test(tc, test_init_exit_2);
tcase_add_test(tc, test_init_exit_3);