forked from Ivasoft/DSView
Add more decoders
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include "../libsigrokdecode.h" /* First, to avoid compiler warning. */
|
||||
#include <libsigrokdecode.h> /* First, to avoid compiler warning. */
|
||||
#include <stdlib.h>
|
||||
#include <check.h>
|
||||
#include "lib.h"
|
||||
@@ -33,7 +33,7 @@ START_TEST(test_inst_new)
|
||||
struct srd_session *sess;
|
||||
struct srd_decoder_inst *inst;
|
||||
|
||||
srd_init(DECODERS_DIR);
|
||||
srd_init(DECODERS_TESTDIR);
|
||||
srd_decoder_load("uart");
|
||||
srd_session_new(&sess);
|
||||
inst = srd_inst_new(sess, "uart", NULL);
|
||||
@@ -53,7 +53,7 @@ START_TEST(test_inst_new_multiple)
|
||||
|
||||
inst1 = inst2 = inst3 = NULL;
|
||||
|
||||
srd_init(DECODERS_DIR);
|
||||
srd_init(DECODERS_TESTDIR);
|
||||
srd_decoder_load_all();
|
||||
srd_session_new(&sess);
|
||||
|
||||
@@ -90,7 +90,7 @@ START_TEST(test_inst_option_set_empty)
|
||||
struct srd_decoder_inst *inst;
|
||||
GHashTable *options;
|
||||
|
||||
srd_init(DECODERS_DIR);
|
||||
srd_init(DECODERS_TESTDIR);
|
||||
srd_decoder_load_all();
|
||||
srd_session_new(&sess);
|
||||
inst = srd_inst_new(sess, "uart", NULL);
|
||||
@@ -114,7 +114,7 @@ START_TEST(test_inst_option_set_bogus)
|
||||
struct srd_decoder_inst *inst;
|
||||
GHashTable *options;
|
||||
|
||||
srd_init(DECODERS_DIR);
|
||||
srd_init(DECODERS_TESTDIR);
|
||||
srd_decoder_load_all();
|
||||
srd_session_new(&sess);
|
||||
inst = srd_inst_new(sess, "uart", NULL);
|
||||
|
||||
Reference in New Issue
Block a user