aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2024-04-16 21:00:49 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2024-04-16 21:03:23 +0200
commita1d113ae1e25751aeb9cac281b30bc9fe6e11551 (patch)
tree5357817a55808e00cbd2fc4648153b155d03e1b5
parentfa2095bcfb0bb8a747ed69e6cb1fe065876fc4e8 (diff)
bsc: Early shutdown upon BSSMAP RESET-ACK timeout
-rw-r--r--bsc/BSC_Tests.ttcn6
1 files changed, 4 insertions, 2 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 1fc42ba7..5e4ebbc9 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -941,13 +941,15 @@ private function f_legacy_bssap_reset(integer bssap_idx := 0) runs on test_CT {
}
[] BSSAP.receive { repeat; }
[] T.timeout {
- log("BSSMAP: Timeout waiting for RESET-ACK after sending RESET");
/* If we received a RESET after ours was sent, it
may be a race condition where the other peer beacame
available after we sent it, but we are in a desired
state anyway, so go forward. */
if (not reset_received) {
- setverdict(fail);
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
+ "BSSMAP: Timeout waiting for RESET-ACK after sending RESET");
+ } else {
+ log("BSSMAP: Timeout waiting for RESET-ACK after sending RESET");
}
}
}