{
int ret;
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
ret = srd_decoder_load_all();
fail_unless(ret == SRD_OK, "srd_decoder_load_all() failed: %d.", ret);
srd_exit();
{
int ret;
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
ret = srd_decoder_load("uart");
fail_unless(ret == SRD_OK, "srd_decoder_load(uart) failed: %d.", ret);
ret = srd_decoder_load("spi");
*/
START_TEST(test_load_bogus)
{
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
/* http://sigrok.org/bugzilla/show_bug.cgi?id=176 */
fail_unless(srd_decoder_load(NULL) != SRD_OK);
fail_unless(srd_decoder_load("") != SRD_OK);
*/
START_TEST(test_load_valid_and_bogus)
{
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
fail_unless(srd_decoder_load("") != SRD_OK);
fail_unless(srd_decoder_load("uart") == SRD_OK);
fail_unless(srd_decoder_load("") != SRD_OK);
{
int ret;
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
ret = srd_decoder_load("uart");
fail_unless(ret == SRD_OK, "Loading uart PD 1x failed: %d", ret);
ret = srd_decoder_load("uart");
*/
START_TEST(test_decoder_list)
{
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
srd_decoder_load_all();
fail_unless(srd_decoder_list() != NULL);
srd_exit();
*/
START_TEST(test_decoder_list_no_load)
{
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
fail_unless(srd_decoder_list() == NULL);
srd_exit();
}
*/
START_TEST(test_decoder_list_correct_numbers)
{
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
fail_unless(g_slist_length((GSList *)srd_decoder_list()) == 0);
srd_decoder_load("spi");
fail_unless(g_slist_length((GSList *)srd_decoder_list()) == 1);
*/
START_TEST(test_get_by_id)
{
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
srd_decoder_load("uart");
fail_unless(srd_decoder_get_by_id("uart") != NULL);
fail_unless(srd_decoder_get_by_id("can") == NULL);
*/
START_TEST(test_get_by_id_multiple)
{
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
srd_decoder_load("uart");
fail_unless(srd_decoder_get_by_id("uart") != NULL);
fail_unless(srd_decoder_get_by_id("uart") != NULL);
*/
START_TEST(test_get_by_id_bogus)
{
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
fail_unless(srd_decoder_get_by_id(NULL) == NULL);
fail_unless(srd_decoder_get_by_id("") == NULL);
fail_unless(srd_decoder_get_by_id(" ") == NULL);
{
struct srd_decoder *dec;
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
srd_decoder_load("uart");
dec = srd_decoder_get_by_id("uart");
fail_unless(srd_decoder_doc_get(dec) != NULL);
*/
START_TEST(test_doc_get_null)
{
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
fail_unless(srd_decoder_doc_get(NULL) == NULL);
srd_exit();
}
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);
inst1 = inst2 = inst3 = NULL;
- srd_init(DECODERS_DIR);
+ srd_init(DECODERS_TESTDIR);
srd_decoder_load_all();
srd_session_new(&sess);
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);
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);