aboutsummaryrefslogtreecommitdiffstats
path: root/tests/nanobts_omlattr
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-03-02 17:31:14 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2022-03-02 17:34:43 +0100
commit10edefe68bd224cda7d988946e5d456f0b12a0d5 (patch)
tree7d8c1ded4591a05c5adb10d24a4ffab5f118f027 /tests/nanobts_omlattr
parentbeed1365faf103df02bb351a587a5b56b77c316e (diff)
tests: nanobts_omlattr_test: Use msgb_eq_data_print() helper
Diffstat (limited to 'tests/nanobts_omlattr')
-rw-r--r--tests/nanobts_omlattr/nanobts_omlattr_test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/nanobts_omlattr/nanobts_omlattr_test.c b/tests/nanobts_omlattr/nanobts_omlattr_test.c
index 1b3cc8e5f..e15d20ef1 100644
--- a/tests/nanobts_omlattr/nanobts_omlattr_test.c
+++ b/tests/nanobts_omlattr/nanobts_omlattr_test.c
@@ -43,7 +43,7 @@ static void test_nanobts_attr_bts_get(struct gsm_bts *bts, uint8_t *expected)
msgb = nanobts_attr_bts_get(bts);
printf("result= %s\n", osmo_hexdump_nospc(msgb->data, msgb->len));
printf("expected=%s\n", osmo_hexdump_nospc(expected, msgb->len));
- OSMO_ASSERT(memcmp(msgb->data, expected, msgb->len) == 0);
+ OSMO_ASSERT(msgb_eq_data_print(msgb, expected, msgb->len));
msgb_free(msgb);
printf("ok.\n");
@@ -59,7 +59,7 @@ static void test_nanobts_attr_nse_get(struct gsm_bts *bts, uint8_t *expected)
msgb = nanobts_attr_nse_get(bts->site_mgr);
printf("result= %s\n", osmo_hexdump_nospc(msgb->data, msgb->len));
printf("expected=%s\n", osmo_hexdump_nospc(expected, msgb->len));
- OSMO_ASSERT(memcmp(msgb->data, expected, msgb->len) == 0);
+ OSMO_ASSERT(msgb_eq_data_print(msgb, expected, msgb->len));
msgb_free(msgb);
printf("ok.\n");
@@ -75,7 +75,7 @@ static void test_nanobts_attr_cell_get(struct gsm_bts *bts, uint8_t *expected)
msgb = nanobts_attr_cell_get(bts);
printf("result= %s\n", osmo_hexdump_nospc(msgb->data, msgb->len));
printf("expected=%s\n", osmo_hexdump_nospc(expected, msgb->len));
- OSMO_ASSERT(memcmp(msgb->data, expected, msgb->len) == 0);
+ OSMO_ASSERT(msgb_eq_data_print(msgb, expected, msgb->len));
msgb_free(msgb);
printf("ok.\n");
@@ -91,7 +91,7 @@ static void test_nanobts_attr_nsvc_get(struct gsm_bts *bts, uint8_t *expected)
msgb = nanobts_attr_nsvc_get(bts);
printf("result= %s\n", osmo_hexdump_nospc(msgb->data, msgb->len));
printf("expected=%s\n", osmo_hexdump_nospc(expected, msgb->len));
- OSMO_ASSERT(memcmp(msgb->data, expected, msgb->len) == 0);
+ OSMO_ASSERT(msgb_eq_data_print(msgb, expected, msgb->len));
msgb_free(msgb);
printf("ok.\n");
@@ -109,7 +109,7 @@ static void test_nanobts_attr_radio_get(struct gsm_bts *bts,
msgb = nanobts_attr_radio_get(bts, trx);
printf("result= %s\n", osmo_hexdump_nospc(msgb->data, msgb->len));
printf("expected=%s\n", osmo_hexdump_nospc(expected, msgb->len));
- OSMO_ASSERT(memcmp(msgb->data, expected, msgb->len) == 0);
+ OSMO_ASSERT(msgb_eq_data_print(msgb, expected, msgb->len));
msgb_free(msgb);
printf("ok.\n");