From c0633b7e3d5ae16e0494bc04db5c166366a75803 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 15 Apr 2023 17:58:07 +0200 Subject: [PATCH] f_verify_talloc_count: mtc.stop If the talloc count matching failed, immediately stop the failed test. It is currently used by BSC_Tests.ttcn, and will soon also be used by HNBGW_Tests.ttcn. These tests were used to uncover memory leaks, and can now remain to guard against new leaks being introduced. Change-Id: Id2b29beecf1c0652fb8d75e031e5c0dc9aa27975 --- library/Osmocom_VTY_Functions.ttcn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn index e4a91828b..6e3ee3750 100644 --- a/library/Osmocom_VTY_Functions.ttcn +++ b/library/Osmocom_VTY_Functions.ttcn @@ -287,7 +287,7 @@ function f_verify_talloc_count(TELNETasp_PT pt, StrList object_strs, integer exp log("count mismatch, retrying in ", wait_time); f_sleep(wait_time); } - setverdict(fail, "talloc count mismatch"); + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "talloc count mismatch"); } }