From fcfb05fd5dde73a839a9b3972769ca0a8494ca51 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 9 May 2011 11:08:55 +0200 Subject: misc: Fix the compilation of the tests --- tests/patching/Makefile.am | 2 +- tests/patching/patching_test.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests') 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 -#include +#include #include #include @@ -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(); } -- cgit v1.2.3