aboutsummaryrefslogtreecommitdiffstats
path: root/tests/edge/EdgeTest.cpp
diff options
context:
space:
mode:
authorAravind Sirsikar <arvind.sirsikar@radisys.com>2016-09-15 17:19:54 +0530
committerAravind Sirsikar <arvind.sirsikar@radisys.com>2016-09-15 17:19:54 +0530
commit3463bd4adc1598462560ed84da837d04d0e8e20c (patch)
tree05ca74dbfc1869376ba10aa7296a29e611391c3f /tests/edge/EdgeTest.cpp
parente26ee01d56b4c4c2da6abc6b649cb765d5787b98 (diff)
EGPRS: add test case to show LI decoding bug
This patch adds a test case test_tbf_li_decoding which expects a current bug with LI decoding for row 4 of Table 10.4.14a.1 in 44.060 version 7.27.0 Release 7. The test's expectation is corrected along with the bug fix in a subsequent commit Related: OS#1811 Change-Id: Ida410dab1aa4b0cf3e15b2090586377eb19b2469
Diffstat (limited to 'tests/edge/EdgeTest.cpp')
-rw-r--r--tests/edge/EdgeTest.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/edge/EdgeTest.cpp b/tests/edge/EdgeTest.cpp
index 9081d4d..592ad63 100644
--- a/tests/edge/EdgeTest.cpp
+++ b/tests/edge/EdgeTest.cpp
@@ -496,6 +496,34 @@ static void test_rlc_unit_decoder()
OSMO_ASSERT(chunks[2].length == 1);
OSMO_ASSERT(!chunks[2].is_complete);
+ /*
+ * TODO: simulate 3GPP TS 44.060 version 7.27.0 Release 7
+ * row 4 of Table 10.4.14a.1
+ * should expect 2 chunks. but currently it fails
+ * due to bug. The assert will be fixed along with actual
+ * fix
+ */
+ rdbi.e = 0;
+ rdbi.ti = 0;
+ rdbi.cv = 1;
+ tlli = 0;
+ offs = 0;
+ data[offs++] = 1;
+ num_chunks = Decoding::rlc_data_from_ul_data(&rdbi, cs, data,
+ chunks, ARRAY_SIZE(chunks), &tlli);
+
+ /*
+ * TODO: we expect 2 chunks here
+ * index 0 as complete and index 1 as incomplete
+ * due to current bug we see only 1 chunk
+ * assert for index 1 will be added in subsequent
+ * patch
+ */
+ OSMO_ASSERT(num_chunks == 1);
+ OSMO_ASSERT(chunks[0].offset == 1);
+ OSMO_ASSERT(chunks[0].length == 43);
+ OSMO_ASSERT(!chunks[0].is_complete);
+
printf("=== end %s ===\n", __func__);
}