Modify nr_dlsim, nr_pbchsim and nr_pucchsim to return '0' on success
- Change return value of nr_dlsim, nr_pbchsim and nr_pucchsim to:
- Return '0' if test succeeds (indicated also by "PDSCH/PBCH/PUCCH test
OK" in the test log).
- Return '1' if test fails.
This commit is contained in:
@@ -943,8 +943,7 @@ printf("%d\n", slot);
|
||||
|
||||
nr_ue_phy_config_request(&UE_mac->phy_config);
|
||||
//NR_COMMON_channels_t *cc = RC.nrmac[0]->common_channels;
|
||||
int n_errs = 0;
|
||||
|
||||
int ret = 1;
|
||||
initNamedTpool(gNBthreads, &gNB->threadPool, true, "gNB-tpool");
|
||||
initNotifiedFIFO(&gNB->L1_tx_free);
|
||||
initNotifiedFIFO(&gNB->L1_tx_filled);
|
||||
@@ -1371,10 +1370,10 @@ printf("%d\n", slot);
|
||||
|
||||
if (effRate > (eff_tp_check*TBS)) {
|
||||
printf("PDSCH test OK\n");
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
n_errs = n_errors[0];
|
||||
} // NSR
|
||||
|
||||
free(Sched_INFO);
|
||||
@@ -1423,7 +1422,7 @@ printf("%d\n", slot);
|
||||
free(filename_csv);
|
||||
}
|
||||
|
||||
return n_errs;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user