aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mtp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mtp')
-rw-r--r--tests/mtp/Makefile.am2
-rw-r--r--tests/mtp/mtp_parse_test.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/mtp/Makefile.am b/tests/mtp/Makefile.am
index 3490641..21cc2c0 100644
--- a/tests/mtp/Makefile.am
+++ b/tests/mtp/Makefile.am
@@ -1,4 +1,4 @@
-AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -Wall
+AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include $(LIBOSMOCORE_CFLAGS) -Wall
noinst_PROGRAMS = mtp_parse_test
EXTRA_DIST = mtp_parse_test.ok
diff --git a/tests/mtp/mtp_parse_test.c b/tests/mtp/mtp_parse_test.c
index e21baed..c13d295 100644
--- a/tests/mtp/mtp_parse_test.c
+++ b/tests/mtp/mtp_parse_test.c
@@ -1,5 +1,5 @@
/* MTP Layer3 parsing tests */
-#include <mtp_level3.h>
+#include <osmocom/mtp/mtp_level3.h>
#include <arpa/inet.h>
@@ -590,14 +590,14 @@ int main(int argc, char **argv)
tests[2].prohib.apoc = MTP_MAKE_APOC(86);
addr = MTP_ADDR(0x00, 0x2AAA, 0x1555);
- if (MTP_ADDR_OPC(addr) != 0x1555) {
+ if (MTP_READ_OPC(addr) != 0x1555) {
fprintf(stderr, "Failed to extract OPC: %d\n",
- MTP_ADDR_OPC(addr));
+ MTP_READ_OPC(addr));
abort();
}
- if (MTP_ADDR_DPC(addr) != 0x2AAA) {
+ if (MTP_READ_DPC(addr) != 0x2AAA) {
fprintf(stderr, "Failed to extract DPC: %d\n",
- MTP_ADDR_DPC(addr));
+ MTP_READ_DPC(addr));
abort();
}