fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27494 )


Change subject: BTS_Tests: fix some compilation warnings (template restrictions)
......................................................................

BTS_Tests: fix some compilation warnings (template restrictions)

Change-Id: I53286a7b4b78a3e816d94d880ae290771cdd7ee8
---
M bts/BTS_Tests.ttcn
1 file changed, 7 insertions(+), 9 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/94/27494/1

diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 27b004a..8ea908b 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -6103,7 +6103,6 @@
 /* Verify periodic interference reports on PDCH */
 testcase TC_pcu_interf_ind() runs on test_CT {
        var template PCUIF_Message tr_interf_ind;
-       var template PCUIF_interf ts_interf;
        var integer interf_ind_num := 0;
        var boolean first := true;
        var PCUIF_send_data sd;
@@ -6122,12 +6121,11 @@
        f_l1_tune(L1CTL);

        /* Expect -120 .. -90 dBm on TS7 of BTS0/TRX0 */
-       ts_interf := { 0, 0, 0, 0, 0, 0, 0, (90..120) };
        tr_interf_ind := tr_PCUIF_INTERF_IND(
                bts_nr := 0,
                trx_nr := 0,
                fn := ?,
-               interf := ts_interf
+               interf := { 0, 0, 0, 0, 0, 0, 0, (90..120) }
        );

        T.start(0.480 * 1.5);
@@ -7220,7 +7218,7 @@
 }

 /* Verify RF RESource INDication messages (periodically sent over the RSL) */
-private function f_TC_rsl_rf_resource_ind(template RSL_ResourceInfo info)
+private function f_TC_rsl_rf_resource_ind(template (present) RSL_ResourceInfo 
info)
 runs on test_CT {
        const IpaStreamId sid := IPAC_PROTO_RSL_TRX0;
        var ASP_RSL_Unitdata ud;
@@ -8093,7 +8091,7 @@
        f_init();

        /* Verify lower and upper RxQual thresholds */
-       var template TopTestCase top := {
+       var template (value) TopTestCase top := {
                bs_power := ts_RSL_IE_BS_Power(4), /* 4 x 2dB = 8dB */
                top_cap := ts_RSL_IE_OSMO_TopAcchCap(4), /* 4dB */
                steps := {
@@ -8140,7 +8138,7 @@
        f_init();

        /* Verify handling of FULL and SUB values */
-       var template TopTestCase top := {
+       var template (value) TopTestCase top := {
                bs_power := ts_RSL_IE_BS_Power(4), /* 4 x 2dB = 8dB */
                top_cap := ts_RSL_IE_OSMO_TopAcchCap(4), /* 4dB */
                steps := {
@@ -8181,7 +8179,7 @@
        f_init();

        /* Overpower is always on, SACCH disabled */
-       var template TopTestCase top := {
+       var template (value) TopTestCase top := {
                bs_power := ts_RSL_IE_BS_Power(4), /* 4 x 2dB = 8dB */
                top_cap := ts_RSL_IE_OSMO_TopAcchCap(overpower := 4, /* 4dB */
                                                     rxqual := 0, /* always on 
*/
@@ -8213,7 +8211,7 @@
        f_init();
 
        /* Overpower is always on, FACCH disabled */
-       var template TopTestCase top := {
+       var template (value) TopTestCase top := {
                bs_power := ts_RSL_IE_BS_Power(4), /* 4 x 2dB = 8dB */
                top_cap := ts_RSL_IE_OSMO_TopAcchCap(overpower := 4, /* 4dB */
                                                     rxqual := 0, /* always on 
*/
@@ -8245,7 +8243,7 @@
        f_init();

        /* Overpower higher than current power reduction level (2dB) */
-       var template TopTestCase top := {
+       var template (value) TopTestCase top := {
                bs_power := ts_RSL_IE_BS_Power(1), /* 1 x 2dB = 2dB */
                top_cap := ts_RSL_IE_OSMO_TopAcchCap(overpower := 4, /* 4dB */
                                                     rxqual := 0 /* always on 
*/),

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27494
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I53286a7b4b78a3e816d94d880ae290771cdd7ee8
Gerrit-Change-Number: 27494
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to