X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=tests%2Finst.c;h=fd8f709a5d6f13043cd72a0e306f8068ceaafa43;hp=8d30b125b5d53a7b4579da1f50ccd8a5b4098667;hb=HEAD;hpb=367843620d039ad183bc4d7c33d91c316d717621
diff --git a/tests/inst.c b/tests/inst.c
index 8d30b12..fd8f709 100644
--- a/tests/inst.c
+++ b/tests/inst.c
@@ -14,12 +14,11 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
#include
-#include "../libsigrokdecode.h" /* First, to avoid compiler warning. */
+#include /* First, to avoid compiler warning. */
#include
#include
#include "lib.h"
@@ -33,7 +32,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 +52,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 +89,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 +113,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);