laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36461?usp=email )

Change subject: ggsn: Avoid dynamic test case error
......................................................................

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
---
M ggsn_tests/GGSN_Tests.ttcn
1 file changed, 19 insertions(+), 1 deletion(-)

Approvals:
  osmith: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  pespin: Looks good to me, approved




diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn
index e2d5fb2..8672947 100644
--- a/ggsn_tests/GGSN_Tests.ttcn
+++ b/ggsn_tests/GGSN_Tests.ttcn
@@ -2080,7 +2080,7 @@
                [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) {

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36461?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I7c7a84ed8343fb48e841248f86d37972f4674ed0
Gerrit-Change-Number: 36461
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to