pcu: Adapt N3101_MAX verification expectations

There's some offset between Tx and Rx path, so we need to account for
differences counting and finding out USF blocks didn't arrive.

Change-Id: I868e7d24c8bdc9b85797f8fe4f9ee1bc5a3d1adb
This commit is contained in:
Pau Espin 2021-03-24 18:48:24 +01:00
parent 4ceb61c063
commit 73c5d37846
1 changed files with 3 additions and 4 deletions

View File

@ -1365,12 +1365,11 @@ testcase TC_n3101_max_t3169() runs on RAW_PCU_Test_CT {
if (rx_usf == ms.ul_tbf.usf[valueof(nr.ts_nr)]) {
log("PCU requests our USF ", rx_usf, ", n3101=", n3101);
n3101 := n3101 + 1;
//"if (n3101 > N3101_MAX) {" -> start timer T3169
if (n3101 > N3101_MAX) {
setverdict(fail, "Reached ", n3101, " > ", N3101_MAX, " (N3101_MAX) and PCU still sends us USFs");
if (n3101 > N3101_MAX + 1) { //+1: DL<->UL FN offset
setverdict(fail, "Reached ", n3101, " > ", N3101_MAX + 1, " (N3101_MAX+1) and PCU still sends us USFs");
f_shutdown(__BFILE__, __LINE__);
}
} else if (rx_usf == USF_UNUSED and n3101 == N3101_MAX) {
} else if (rx_usf == USF_UNUSED and n3101 == N3101_MAX + 1) {
/* If we already received USFs for us and we don't receive them anymore, that means the TBF entered T3169 */
log("PCU stopped requesting USF ", ms.ul_tbf.usf[valueof(nr.ts_nr)]);
if (not T_3169.running) {