diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/edge/EdgeTest.cpp | 24 | ||||
-rw-r--r-- | tests/tbf/TbfTest.cpp | 3 | ||||
-rw-r--r-- | tests/tbf/TbfTest.err | 5 |
3 files changed, 12 insertions, 20 deletions
diff --git a/tests/edge/EdgeTest.cpp b/tests/edge/EdgeTest.cpp index 592ad63..3537aa7 100644 --- a/tests/edge/EdgeTest.cpp +++ b/tests/edge/EdgeTest.cpp @@ -496,13 +496,6 @@ 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; @@ -512,17 +505,14 @@ static void test_rlc_unit_decoder() 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(num_chunks == 2); OSMO_ASSERT(chunks[0].offset == 1); - OSMO_ASSERT(chunks[0].length == 43); - OSMO_ASSERT(!chunks[0].is_complete); + OSMO_ASSERT(chunks[0].length == 0); + OSMO_ASSERT(chunks[0].is_complete); + + OSMO_ASSERT(chunks[1].offset == 1); + OSMO_ASSERT(chunks[1].length == 43); + OSMO_ASSERT(!chunks[1].is_complete); printf("=== end %s ===\n", __func__); } diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp index 36aadc5..4e37aa8 100644 --- a/tests/tbf/TbfTest.cpp +++ b/tests/tbf/TbfTest.cpp @@ -1980,8 +1980,7 @@ static gprs_rlcmac_ul_tbf *tbf_li_decoding(BTS *the_bts, data_msg[5] = 0x0; pdch->rcv_block(data_msg, 49, *fn, &meas); - /* TODO: should expect m_index as 43 */ - OSMO_ASSERT(ul_tbf->m_llc.m_index == 87); + OSMO_ASSERT(ul_tbf->m_llc.m_index == 43); return ul_tbf; } diff --git a/tests/tbf/TbfTest.err b/tests/tbf/TbfTest.err index 06b63eb..90f04be 100644 --- a/tests/tbf/TbfTest.err +++ b/tests/tbf/TbfTest.err @@ -6489,7 +6489,10 @@ TBF(TFI=0 TLLI=0xf1223344 DIR=UL STATE=FLOW EGPRS): data_length=44, data=01 00 0 - Raising V(R) to 2 - Taking block 1 out, raising V(Q) to 2 - Assembling frames: (len=44) --- Frame 1 starts at offset 1, length=43, is_complete=0 +TBF(TFI=0 TLLI=0xf1223344 DIR=UL STATE=FLOW EGPRS) complete UL frame len=44 +LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xf1223344 DIR=UL STATE=FLOW EGPRS) len=44 +No bctx +-- Frame 2 starts at offset 1, length=43, is_complete=0 - No gaps in received block, last block: BSN=1 CV=7 Got 'TBF(TFI=0 TLLI=0xf1223344 DIR=UL STATE=FLOW EGPRS)', TA=7 Got MS: TLLI = 0xf1223344, TA = 7 |