Change in osmo-ttcn3-hacks[master]: move as_iu_release_compl_disc from BSC_ConnHdlr to RAN_Emulation

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu May 2 17:17:02 UTC 2019


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/13853 )

Change subject: move as_iu_release_compl_disc from BSC_ConnHdlr to RAN_Emulation
......................................................................

move as_iu_release_compl_disc from BSC_ConnHdlr to RAN_Emulation

... this way other tests beyond MSC_Tests.ttcn can use it.

Change-Id: If6d4bbbd09c6261bd665aa66e0d4d027aeaa4d16
---
M library/RAN_Emulation.ttcnpp
M msc/BSC_ConnectionHandler.ttcn
2 files changed, 23 insertions(+), 21 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/library/RAN_Emulation.ttcnpp b/library/RAN_Emulation.ttcnpp
index a74b6de..d6d74e2 100644
--- a/library/RAN_Emulation.ttcnpp
+++ b/library/RAN_Emulation.ttcnpp
@@ -1229,5 +1229,28 @@
 	}
 }
 
+#ifdef RAN_EMULATION_RANAP
+/* expect a IuReleaseCommand; Confirm that; expect SCCP-level N-DISCONNET.ind */
+altstep as_iu_release_compl_disc(float t := 5.0) runs on RAN_ConnHdlr {
+	var RANAP_PDU ranap;
+	[] BSSAP.receive(tr_RANAP_IuReleaseCommand(?)) {
+		BSSAP.send(ts_RANAP_IuReleaseComplete);
+		alt {
+		[] BSSAP.receive(RAN_Conn_Prim:MSC_CONN_PRIM_DISC_IND) {
+			setverdict(pass);
+			}
+		[] BSSAP.receive {
+			setverdict(fail, "Unexpected RANAP while waiting for SCCP Release ");
+			mtc.stop;
+			}
+		}
+		}
+	[] BSSAP.receive(RANAP_PDU:?) -> value ranap{
+		setverdict(fail, "Unexpected RANAP while waiting for IuReleaseCommand", ranap);
+		mtc.stop;
+		}
+}
+#endif
+
 
 }
diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn
index 595f402..1750bf5 100644
--- a/msc/BSC_ConnectionHandler.ttcn
+++ b/msc/BSC_ConnectionHandler.ttcn
@@ -1015,27 +1015,6 @@
 		}
 }
 
-/* expect a IuReleaseCommand; Confirm that; expect SCCP-level N-DISCONNET.ind */
-altstep as_iu_release_compl_disc(float t := 5.0) runs on BSC_ConnHdlr {
-	var RANAP_PDU ranap;
-	[] BSSAP.receive(tr_RANAP_IuReleaseCommand(?)) {
-		BSSAP.send(ts_RANAP_IuReleaseComplete);
-		alt {
-		[] BSSAP.receive(RAN_Conn_Prim:MSC_CONN_PRIM_DISC_IND) {
-			setverdict(pass);
-			}
-		[] BSSAP.receive {
-			setverdict(fail, "Unexpected RANAP while waiting for SCCP Release ");
-			mtc.stop;
-			}
-		}
-		}
-	[] BSSAP.receive(RANAP_PDU:?) -> value ranap{
-		setverdict(fail, "Unexpected RANAP while waiting for IuReleaseCommand", ranap);
-		mtc.stop;
-		}
-}
-
 function f_expect_clear(float t := 5.0) runs on BSC_ConnHdlr {
 	timer T := t;
 

-- 
To view, visit https://gerrit.osmocom.org/13853
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: If6d4bbbd09c6261bd665aa66e0d4d027aeaa4d16
Gerrit-Change-Number: 13853
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190502/62b70115/attachment.htm>


More information about the gerrit-log mailing list