]> sigrok.org Git - libsigrokdecode.git/commitdiff
runtc: Make sure to test this set of decoders, not the installed ones.
authorBert Vermeulen <redacted>
Wed, 11 Dec 2013 11:50:38 +0000 (12:50 +0100)
committerBert Vermeulen <redacted>
Wed, 11 Dec 2013 11:50:38 +0000 (12:50 +0100)
tests/Makefile.am
tests/runtc.c

index 7841f055c09bb3dd05af7f4e620cc7d2cab92121..5739a035c7730a944eaa4f44ba2563d26f139c1c 100644 (file)
@@ -41,6 +41,7 @@ endif
 if HAVE_LIBSIGROK
 bin_PROGRAMS = runtc
 runtc_SOURCES = runtc.c
-runtc_CPPFLAGS = $(CPPFLAGS_PYTHON) $(LIBSIGROK_CFLAGS)
+runtc_CPPFLAGS = $(CPPFLAGS_PYTHON) $(LIBSIGROK_CFLAGS) \
+       -DDECODERS_DIR='"$(abs_top_builddir)/decoders"'
 runtc_LDFLAGS = $(LIBSIGROK_LIBS) -L$(top_builddir) -lsigrokdecode
 endif
index 78dbf5ec15ec38ebed8727d5681bb877855026af..bb2595013338c6b7698b78c79b635dfbd59ee54c 100644 (file)
@@ -468,7 +468,7 @@ int main(int argc, char **argv)
                return 1;
 
        srd_log_callback_set(srd_log, NULL);
-       if (srd_init(NULL) != SRD_OK)
+       if (srd_init(DECODERS_DIR) != SRD_OK)
                return 1;
 
        run_testcase(opt_infile, pdlist, op);