X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=tests%2Fcheck_inst.c;h=fccd2e18192bf0dc844e9410746afe0bffbf3b90;hb=ea1fc7b1a9d857c7ad147c1b81c6e4b3aa1cd3b6;hp=25adc4f89160355ff42f6133cfe65a441192aaff;hpb=368b406efb2f4527d11b10dda8011f352288023e;p=libsigrokdecode.git diff --git a/tests/check_inst.c b/tests/check_inst.c index 25adc4f..fccd2e1 100644 --- a/tests/check_inst.c +++ b/tests/check_inst.c @@ -21,6 +21,7 @@ #include "../libsigrokdecode.h" /* First, to avoid compiler warning. */ #include #include +#include "lib.h" static void setup(void) { @@ -41,7 +42,7 @@ START_TEST(test_inst_new) struct srd_session *sess; struct srd_decoder_inst *inst; - srd_init(NULL); + srd_init(DECODERS_DIR); srd_decoder_load("uart"); srd_session_new(&sess); inst = srd_inst_new(sess, "uart", NULL); @@ -61,7 +62,7 @@ START_TEST(test_inst_new_multiple) inst1 = inst2 = inst3 = NULL; - srd_init(NULL); + srd_init(DECODERS_DIR); srd_decoder_load_all(); srd_session_new(&sess); @@ -98,7 +99,7 @@ START_TEST(test_inst_option_set_empty) struct srd_decoder_inst *inst; GHashTable *options; - srd_init(NULL); + srd_init(DECODERS_DIR); srd_decoder_load_all(); srd_session_new(&sess); inst = srd_inst_new(sess, "uart", NULL); @@ -122,7 +123,7 @@ START_TEST(test_inst_option_set_bogus) struct srd_decoder_inst *inst; GHashTable *options; - srd_init(NULL); + srd_init(DECODERS_DIR); srd_decoder_load_all(); srd_session_new(&sess); inst = srd_inst_new(sess, "uart", NULL);