summaryrefslogtreecommitdiffstats
path: root/tests/gsm0808
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2019-01-14 19:27:44 +0100
committerMax <msuraev@sysmocom.de>2019-01-14 23:46:34 +0000
commit4fd64e5d93f5f1b5732b8f69293e135fc42910e4 (patch)
treead2dc2f4e6a0a4161a2c55dedb4825a952f48f65 /tests/gsm0808
parent6ad50aaebdc2d89518f77766cfe128c0e3d13a53 (diff)
LCLS: expand enc/dec tests
Change-Id: I8ed87f26216104d34c7bd11c1527b203843760a2
Diffstat (limited to 'tests/gsm0808')
-rw-r--r--tests/gsm0808/gsm0808_test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/gsm0808/gsm0808_test.c b/tests/gsm0808/gsm0808_test.c
index 40e2b87b..b3cab502 100644
--- a/tests/gsm0808/gsm0808_test.c
+++ b/tests/gsm0808/gsm0808_test.c
@@ -720,6 +720,18 @@ static void test_enc_dec_lcls()
abort();
}
+ if (lcls_out.config != lcls_in.config) {
+ printf("LCLS Config parsed wrong: %s != %s\n",
+ gsm0808_lcls_config_name(lcls_out.config), gsm0808_lcls_config_name(lcls_in.config));
+ abort();
+ }
+
+ if (lcls_out.control != lcls_in.control) {
+ printf("LCLS Control parsed wrong: %s != %s\n",
+ gsm0808_lcls_control_name(lcls_out.control), gsm0808_lcls_control_name(lcls_in.control));
+ abort();
+ }
+
if (lcls_out.gcr->net_len != g.net_len) {
printf("Network ID length parsed wrong: %u != %u\n", lcls_out.gcr->net_len, g.net_len);
abort();