From 972d44be23fdf18aa7744cf1cf56dc4b772ffa11 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 27 Nov 2019 16:18:56 +0000 Subject: [PATCH] Remove printfs in test. PDCP seems to be notifing correctly the RLC when discard happens. --- lib/test/upper/pdcp_nr_test.cc | 4 +--- lib/test/upper/pdcp_nr_test.h | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/test/upper/pdcp_nr_test.cc b/lib/test/upper/pdcp_nr_test.cc index f24572697..c20f4c590 100644 --- a/lib/test/upper/pdcp_nr_test.cc +++ b/lib/test/upper/pdcp_nr_test.cc @@ -179,13 +179,11 @@ int test_tx_sdu_discard(const pdcp_initial_state& init_state, sdu->append_bytes(sdu1, sizeof(sdu1)); pdcp->write_sdu(std::move(sdu), true); - for (uint32_t i = 0; i < static_cast(cfg.discard_timer); ++i) { + for (uint32_t i = 0; i < static_cast(cfg.discard_timer) - 1; ++i) { timers->step_all(); - printf("%d\n",i); } TESTASSERT(rlc->discard_count == 0); timers->step_all(); - timers->step_all(); TESTASSERT(rlc->discard_count == 1); return 0; } diff --git a/lib/test/upper/pdcp_nr_test.h b/lib/test/upper/pdcp_nr_test.h index 058da2ff4..bff2bb32b 100644 --- a/lib/test/upper/pdcp_nr_test.h +++ b/lib/test/upper/pdcp_nr_test.h @@ -90,6 +90,7 @@ public: { log->info("Notifing RLC to discard SDU (SN=%" PRIu32 ")\n", discard_sn); discard_count++; + log->info("Discard_count=%" PRIu64 ")\n", discard_count); } uint64_t rx_count = 0;