pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33780 )
Change subject: hnbgw: Introduce module parameter mp_validate_talloc_asn1 ......................................................................
hnbgw: Introduce module parameter mp_validate_talloc_asn1
This allows selectively disabling ASN.1 memory checks, which still fail in current osmo-hnbgw-latest.
Change-Id: I5c18cf2d6797bcf0bef13d71ab0b69f1403b474f --- M hnbgw/HNBGW_Tests.ttcn 1 file changed, 17 insertions(+), 1 deletion(-)
Approvals: laforge: Looks good to me, but someone else must approve osmith: Looks good to me, approved Jenkins Builder: Verified
diff --git a/hnbgw/HNBGW_Tests.ttcn b/hnbgw/HNBGW_Tests.ttcn index f38fc0c..a89837a 100644 --- a/hnbgw/HNBGW_Tests.ttcn +++ b/hnbgw/HNBGW_Tests.ttcn @@ -185,6 +185,8 @@ /* IP address from which the SUT (osmo-hnbgw) sends PFCP requests, and to which the ttcn3 UPF emulation sends * PFCP responses. */ charstring mp_pfcp_ip_remote := "127.0.0.2"; + + boolean mp_validate_talloc_asn1 := true; }
function MSC_UnitdataCallback(RANAP_PDU ranap) runs on RAN_Emulation_CT return template RANAP_PDU { @@ -460,7 +462,9 @@ }
friend function f_shutdown_helper() runs on test_CT { - f_verify_talloc_bytes(HNBGWVTY, {"asn1_context"}, 1); + if (mp_validate_talloc_asn1) { + f_verify_talloc_bytes(HNBGWVTY, {"asn1_context"}, 1); + }
all component.stop; setverdict(pass);