diff --git a/lib/test/upper/rlc_am_data_test.cc b/lib/test/upper/rlc_am_data_test.cc index a4ba21f75..282770be7 100644 --- a/lib/test/upper/rlc_am_data_test.cc +++ b/lib/test/upper/rlc_am_data_test.cc @@ -51,90 +51,104 @@ uint32_t PDU4_LEN = 5; using namespace srslte; -int main(int argc, char **argv) { +void test1() +{ srslte::rlc_amd_pdu_header_t h; - srslte::byte_buffer_t b1,b2; + srslte::byte_buffer_t b1, b2; memcpy(b1.msg, &pdu1[0], PDU1_LEN); b1.N_bytes = PDU1_LEN; rlc_am_read_data_pdu_header(&b1, &h); assert(RLC_DC_FIELD_DATA_PDU == h.dc); assert(0x01 == h.fi); - assert(0 == h.N_li); - assert(0 == h.lsf); - assert(0 == h.p); - assert(0 == h.rf); - assert(0 == h.so); - assert(6 == h.sn); + assert(0 == h.N_li); + assert(0 == h.lsf); + assert(0 == h.p); + assert(0 == h.rf); + assert(0 == h.so); + assert(6 == h.sn); rlc_am_write_data_pdu_header(&h, &b2); assert(b2.N_bytes == PDU1_LEN); - for(uint32_t i=0;i