diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-08-14 19:30:54 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-08-14 19:30:54 +0200 |
commit | 28c3c217cc70cf2eba41dbca2954c5d8382802d7 (patch) | |
tree | 452fce7be8b41c149a8e05679c629432269bc8cb /tests/check_main.c | |
parent | d841d5b26f2134143fc80c9898522d13387b7cc8 (diff) | |
download | libsigrokdecode-28c3c217cc70cf2eba41dbca2954c5d8382802d7.tar.gz libsigrokdecode-28c3c217cc70cf2eba41dbca2954c5d8382802d7.zip |
tests: Factor out srdtest_setup() / srdtest_teardown().
Diffstat (limited to 'tests/check_main.c')
-rw-r--r-- | tests/check_main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/check_main.c b/tests/check_main.c index 6af3c3f..96b6f43 100644 --- a/tests/check_main.c +++ b/tests/check_main.c @@ -23,6 +23,16 @@ #include <check.h> #include "lib.h" +void srdtest_setup(void) +{ + /* Silence libsigrokdecode while the unit tests run. */ + srd_log_loglevel_set(SRD_LOG_NONE); +} + +void srdtest_teardown(void) +{ +} + int main(void) { int ret; |