From fd9f847d2d328cddc9ccca01af2054abcf7005b2 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 15 May 2018 16:29:49 +0200 Subject: [PATCH] dont let RLC stress test fail if buffer gets empty --- lib/test/upper/rlc_stress_test.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/test/upper/rlc_stress_test.cc b/lib/test/upper/rlc_stress_test.cc index 0def725c1..345e3f1a3 100644 --- a/lib/test/upper/rlc_stress_test.cc +++ b/lib/test/upper/rlc_stress_test.cc @@ -278,8 +278,10 @@ private: while(run_enable) { byte_buffer_t *pdu = byte_buffer_pool::get_instance()->allocate("rlc_tester::run_thread"); if (!pdu) { - printf("Fatal Error: Could not allocate PDU in rlc_tester::run_thread\n"); - exit(-1); + printf("Error: Could not allocate PDU in rlc_tester::run_thread\n\n\n"); + // backoff for a bit + usleep(1000); + continue; } for (uint32_t i = 0; i < SDU_SIZE; i++) { pdu->msg[i] = sn;