mirror of https://github.com/PentHertz/srsLTE.git
Increase enb_phy_test flush time
This commit is contained in:
parent
f02e07c140
commit
d4f1839991
|
@ -1373,7 +1373,7 @@ public:
|
|||
}
|
||||
break;
|
||||
case change_state_flush:
|
||||
if (tti_counter >= 2 * FDD_HARQ_DELAY_DL_MS + FDD_HARQ_DELAY_UL_MS) {
|
||||
if (tti_counter >= 2 * (FDD_HARQ_DELAY_DL_MS + FDD_HARQ_DELAY_UL_MS)) {
|
||||
logger.warning("******* Cell rotation: Reconfigure *******");
|
||||
|
||||
std::array<bool, SRSRAN_MAX_CARRIERS> activation = {}; ///< Activation/Deactivation vector
|
||||
|
@ -1502,20 +1502,23 @@ int main(int argc, char** argv)
|
|||
if (not valid_cfg) {
|
||||
// Verify that phy returns with an error if provided an invalid configuration
|
||||
TESTASSERT(err_code != SRSRAN_SUCCESS);
|
||||
return 0;
|
||||
return SRSRAN_SUCCESS;
|
||||
}
|
||||
TESTASSERT(err_code == SRSRAN_SUCCESS);
|
||||
|
||||
// Run Simulation
|
||||
for (uint32_t i = 0; i < test_args.duration; i++) {
|
||||
TESTASSERT(test_bench->run_tti() >= SRSRAN_SUCCESS);
|
||||
for (uint32_t i = 0; i < test_args.duration and err_code >= SRSRAN_SUCCESS; i++) {
|
||||
err_code = test_bench->run_tti();
|
||||
}
|
||||
|
||||
test_bench->stop();
|
||||
|
||||
srslog::flush();
|
||||
|
||||
std::cout << "Passed" << std::endl;
|
||||
if (err_code >= SRSRAN_SUCCESS) {
|
||||
std::cout << "Ok" << std::endl;
|
||||
} else {
|
||||
std::cout << "Error" << std::endl;
|
||||
}
|
||||
|
||||
return SRSRAN_SUCCESS;
|
||||
return err_code;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue