BSC_Tests: Fix compiler warnings about inadequate template restrictions

Change-Id: I3e6e724d563993202611e73b525d5d6769bb5460
This commit is contained in:
Harald Welte 2020-08-21 12:38:33 +02:00
parent bd98295fcb
commit 65e419a085
1 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ template EUTRAN_CellDesc tr_EUTRAN_CellDesc_default(template (present) uint16_t
meas_bw := meas_bw);
/* tr_EUTRAN_NeighbourCells with defaults used in BSC_Tests.ttcn */
template EUTRAN_NeighbourCells tr_EUTRAN_NeighbourCells_default(template EUTRAN_CellDescs cell_desc_list := { tr_EUTRAN_CellDesc_default },
template EUTRAN_NeighbourCells tr_EUTRAN_NeighbourCells_default(template (present) EUTRAN_CellDescs cell_desc_list := { tr_EUTRAN_CellDesc_default },
template uint3_t prio := 3,
template (present) uint5_t thresh_high := 20,
template uint5_t thresh_low := 10,
@ -978,7 +978,7 @@ runs on test_CT {
}
/* expect to receive a RSL message matching a specified template on a given BTS / stream */
function f_exp_ipa_rx(integer bts_nr, template RSL_Message t_rx, float t_secs := 2.0, IpaStreamId sid := IPAC_PROTO_RSL_TRX0)
function f_exp_ipa_rx(integer bts_nr, template (present) RSL_Message t_rx, float t_secs := 2.0, IpaStreamId sid := IPAC_PROTO_RSL_TRX0)
runs on test_CT return RSL_Message {
var ASP_RSL_Unitdata rx_rsl_ud;
timer T := t_secs;
@ -998,7 +998,7 @@ runs on test_CT return RSL_Message {
}
/* helper function to transmit RSL on a given BTS/stream */
function f_ipa_tx(integer bts_nr, template RSL_Message t_tx, IpaStreamId sid := IPAC_PROTO_RSL_TRX0)
function f_ipa_tx(integer bts_nr, template (value) RSL_Message t_tx, IpaStreamId sid := IPAC_PROTO_RSL_TRX0)
runs on test_CT {
IPA_RSL[bts_nr].send(ts_ASP_RSL_UD(t_tx, sid));
}