aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-05-09 11:08:55 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-05-09 11:08:55 +0200
commitfcfb05fd5dde73a839a9b3972769ca0a8494ca51 (patch)
tree74ba6a23ca58e6b13dcd772dbe53c53b49a9afcf /tests
parent36bd5d755c9d8568035ba309a32f849af7771efb (diff)
misc: Fix the compilation of the tests
Diffstat (limited to 'tests')
-rw-r--r--tests/patching/Makefile.am2
-rw-r--r--tests/patching/patching_test.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/patching/Makefile.am b/tests/patching/Makefile.am
index 009a6d7..c24b768 100644
--- a/tests/patching/Makefile.am
+++ b/tests/patching/Makefile.am
@@ -2,5 +2,5 @@ INCLUDES = $(all_includes) -I$(top_srcdir)/include $(LIBOSMOCORE_CFLAGS) $(LIBOS
noinst_PROGRAMS = patching_test
patching_test_SOURCES = patching_test.c $(top_srcdir)/src/bss_patch.c
-patching_test_LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOSCCP_LIBS)
+patching_test_LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOSCCP_LIBS) $(LIBOSMOGSM_LIBS)
diff --git a/tests/patching/patching_test.c b/tests/patching/patching_test.c
index 12e292c..9917734 100644
--- a/tests/patching/patching_test.c
+++ b/tests/patching/patching_test.c
@@ -2,7 +2,7 @@
#include <cellmgr_debug.h>
-#include <osmocore/utils.h>
+#include <osmocom/core/utils.h>
#include <stdio.h>
#include <string.h>
@@ -221,20 +221,20 @@ static void test_rewrite_msc(void)
rc = bss_patch_filter_msg(outp, &result);
if (rc < 0) {
printf("Patched message doesn't work: %d\n", i);
- printf("hex: %s\n", hexdump(outp->l2h, msgb_l2len(outp)));
+ printf("hex: %s\n", osmo_hexdump(outp->l2h, msgb_l2len(outp)));
abort();
}
if (msgb_l2len(outp) != rewrite_results_to_msc[i].exp_len) {
printf("The length's don#t match on %d %u != %u\n",
i, msgb_l2len(outp), rewrite_results_to_msc[i].exp_len);
- printf("hex: %s\n", hexdump(outp->l2h, msgb_l2len(outp)));
+ printf("hex: %s\n", osmo_hexdump(outp->l2h, msgb_l2len(outp)));
abort();
}
if (memcmp(outp->l2h, rewrite_results_to_msc[i].expected, rewrite_results_to_msc[i].exp_len) != 0) {
printf("Expected results don't match for: %d\n", i);
- printf("hex: %s\n", hexdump(outp->l2h, msgb_l2len(outp)));
+ printf("hex: %s\n", osmo_hexdump(outp->l2h, msgb_l2len(outp)));
abort();
}
@@ -263,7 +263,7 @@ static void test_rewrite_bsc(void)
if (memcmp(inp->l2h, rewrite_results_to_bsc[i].expected, msgb_l2len(inp))!= 0) {
fprintf(stderr, "Content does not match\n");
- printf("got: %s\n", hexdump(inp->l2h, msgb_l2len(inp)));
+ printf("got: %s\n", osmo_hexdump(inp->l2h, msgb_l2len(inp)));
abort();
}