From 9f3a947c0279964d7a0070bb168927411278aa00 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 9 Jul 2019 20:29:34 +0200 Subject: [PATCH] modify RLC AM retx test to provide exactly a MAC opportunity of the size that is reported as buffer state --- lib/test/upper/rlc_am_test.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/test/upper/rlc_am_test.cc b/lib/test/upper/rlc_am_test.cc index aa3bbcd1d..790a124d9 100644 --- a/lib/test/upper/rlc_am_test.cc +++ b/lib/test/upper/rlc_am_test.cc @@ -432,11 +432,12 @@ bool retx_test() timers.step_all(); } - assert(4 == rlc2.get_buffer_state()); + uint32_t buffer_state = rlc2.get_buffer_state(); + assert(4 == buffer_state); // Read status PDU from RLC2 byte_buffer_t status_buf; - len = rlc2.read_pdu(status_buf.msg, 10); // 10 bytes is enough to hold the status + len = rlc2.read_pdu(status_buf.msg, buffer_state); // provide exactly the reported buffer state status_buf.N_bytes = len; // Write status PDU to RLC1