diff options
author | Harald Welte <laforge@osmocom.org> | 2024-03-26 14:33:33 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2024-03-26 14:35:25 +0100 |
commit | 5dc20d741746b81d08032d0443fa64732b1b3862 (patch) | |
tree | e58dcbf1c6def86e2dd369c5aa055a851a46f63c | |
parent | 33f9eea8afadff30451ad04f17c86ecca1599671 (diff) |
ggsn: Avoid dynamic test case error
During TC_addr_pool_exhaustion, if all of the pdp context activations
were unsuccessful, teic_list is an empty list. We therefore cannot
unconditionally obtain its first element.
This patch avoids the related "Index overflow in a value of type
@PreGenRecordOf.PREGEN_RECORD_OF_OCTETSTRING: The index is 0, but the
value has only 0 elements."
Related: OS#6423
Change-Id: I7c7a84ed8343fb48e841248f86d37972f4674ed0
-rw-r--r-- | ggsn_tests/GGSN_Tests.ttcn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn index e2d5fb29..8672947f 100644 --- a/ggsn_tests/GGSN_Tests.ttcn +++ b/ggsn_tests/GGSN_Tests.ttcn @@ -2080,7 +2080,7 @@ module GGSN_Tests { [Gx_PROC.checkstate("Connected")] as_DIA_Gx_CCR(TERMINATION_REQUEST) { repeat; } [Gy_PROC.checkstate("Connected")] as_DIA_Gy_CCR(omit, TERMINATION_REQUEST) { repeat; } [] pingpong(); - [] T_next.timeout { + [lengthof(teic_list) > 0] T_next.timeout { f_send_gtpc(ts_GTPC_DeletePDP(g_peer_c, g_c_seq_nr, teic_list[next_req_ctx], '0001'B, '1'B)); next_req_ctx := next_req_ctx + 1; if (next_req_ctx < num_ctx) { |