aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-03-18 14:19:25 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2014-03-18 14:30:04 +0100
commit59726440568e5a7d47897d1e53732ba84e35ce8b (patch)
treeb7ef8c59e0d9b49263909e20e423fd783b4ea6aa
parent0bae8e3c33ef9115aef3d7edc5d3ca00df3f2efc (diff)
msgb: Enable checking and fix breaking code (TODO)jerlbeck/msgb-validation
Sponsored-by: On-Waves ehf
-rw-r--r--tests/lapd/lapd_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lapd/lapd_test.c b/tests/lapd/lapd_test.c
index 6b5cfd3..cef1e0d 100644
--- a/tests/lapd/lapd_test.c
+++ b/tests/lapd/lapd_test.c
@@ -105,8 +105,8 @@ static struct msgb *create_mm_id_req(void)
msg = msgb_from_array(mm, sizeof(mm));
msg->l2h = msg->data + 3;
- OSMO_ASSERT(msgb_l2len(msg) == 12);
msg->l3h = msg->l2h + 6;
+ OSMO_ASSERT(msgb_l2len(msg) == 12);
OSMO_ASSERT(msgb_l3len(msg) == 6);
msgb_push(msg, dummy_l1_header_len);