summaryrefslogtreecommitdiffstats
path: root/ggsn_tests/GGSN_Tests.ttcn
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-03-03 16:46:29 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-03-03 16:48:34 +0100
commitc04c69e689a43e7afce3b773452cd2cf3d0773f2 (patch)
tree86f174c995a9ee9575dde4d1f351027ba93e38c1 /ggsn_tests/GGSN_Tests.ttcn
parent123ec855a0dc38e03d57a34e99d853f6a7410b8e (diff)
ggsn: Terminate immediately on pipong altstep failure
Diffstat (limited to 'ggsn_tests/GGSN_Tests.ttcn')
-rw-r--r--ggsn_tests/GGSN_Tests.ttcn9
1 files changed, 7 insertions, 2 deletions
diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn
index 40506df..be0e565 100644
--- a/ggsn_tests/GGSN_Tests.ttcn
+++ b/ggsn_tests/GGSN_Tests.ttcn
@@ -14,6 +14,7 @@ module GGSN_Tests {
import from General_Types all;
import from Osmocom_Types all;
+ import from Misc_Helpers all;
import from IPL4asp_PortType all;
import from IPL4asp_Types all;
import from GTP_CodecPort all;
@@ -209,9 +210,13 @@ module GGSN_Tests {
repeat;
};
[not g_use_echo] GTPC.receive(tr_GTPC_PING(?)) {
- setverdict(fail, "GTP Echo Req rceived but not enabled in VTY");
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
+ "GTP Echo Req rceived but not enabled in VTY");
+ };
+ [] T_default.timeout {
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
+ "pinpong T_default timeout");
};
- [] T_default.timeout { setverdict(fail); };
}
/* 'internet' in DNS encoding */