<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/17908">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">HACK: avoid compilation error with TITAN > 6.5.0<br><br>it seems TITAN no longer supports 'ifpresent' in certain situations,<br>see https://www.eclipse.org/forums/index.php/m/1826175/#msg_1826175<br><br>Let's make the tests fail if we actually run in those cases, but at<br>least compile fine and be able to execute all the other tests.<br><br>Change-Id: Ia401c2d696979c0062872bca8da62c2ea153427b<br>---<br>M library/CBSP_Templates.ttcn<br>1 file changed, 8 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/08/17908/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/CBSP_Templates.ttcn b/library/CBSP_Templates.ttcn</span><br><span>index fe06150..49906fe 100644</span><br><span>--- a/library/CBSP_Templates.ttcn</span><br><span>+++ b/library/CBSP_Templates.ttcn</span><br><span>@@ -368,7 +368,8 @@</span><br><span>           tr_NewSerNo(new_ser_nr)</span><br><span>      };</span><br><span>   if (istemplatekind(cell_list, "*")) {</span><br><span style="color: hsl(0, 100%, 40%);">-         ies[lengthof(ies)] := tr_CbspCellList ifpresent;</span><br><span style="color: hsl(120, 100%, 40%);">+              testcase.stop("TITAN > 6.5.0 doesn't support this");</span><br><span style="color: hsl(120, 100%, 40%);">+         //ies[lengthof(ies)] := tr_CbspCellList ifpresent;</span><br><span>   } else if (istemplatekind(cell_list, "?")) {</span><br><span>               ies[lengthof(ies)] := tr_CbspCellList(?);</span><br><span>    } else if (not istemplatekind(cell_list, "omit")) {</span><br><span>@@ -411,7 +412,8 @@</span><br><span>          tr_CbspNumComplList(compl_list)</span><br><span>      };</span><br><span>   if (istemplatekind(cell_list, "*")) {</span><br><span style="color: hsl(0, 100%, 40%);">-         ies[lengthof(ies)] := tr_CbspCellList ifpresent;</span><br><span style="color: hsl(120, 100%, 40%);">+              testcase.stop("TITAN > 6.5.0 doesn't support this");</span><br><span style="color: hsl(120, 100%, 40%);">+         //ies[lengthof(ies)] := tr_CbspCellList ifpresent;</span><br><span>   } else if (istemplatekind(cell_list, "?")) {</span><br><span>               ies[lengthof(ies)] := tr_CbspCellList(?);</span><br><span>    } else if (not istemplatekind(cell_list, "omit")) {</span><br><span>@@ -464,7 +466,8 @@</span><br><span>          ies[lengthof(ies)] := tr_CbspNumComplList(compl_list);</span><br><span>       }</span><br><span>    if (istemplatekind(cell_list, "*")) {</span><br><span style="color: hsl(0, 100%, 40%);">-         ies[lengthof(ies)] := tr_CbspCellList ifpresent;</span><br><span style="color: hsl(120, 100%, 40%);">+              testcase.stop("TITAN > 6.5.0 doesn't support this");</span><br><span style="color: hsl(120, 100%, 40%);">+         //ies[lengthof(ies)] := tr_CbspCellList ifpresent;</span><br><span>   } else if (istemplatekind(cell_list, "?")) {</span><br><span>               ies[lengthof(ies)] := tr_CbspCellList(?);</span><br><span>    } else if (not istemplatekind(cell_list, "omit")) {</span><br><span>@@ -641,7 +644,8 @@</span><br><span>          ies[lengthof(ies)] := tr_CbspCellList(cell_list);</span><br><span>    }</span><br><span>    if (istemplatekind(channel_ind, "*")) {</span><br><span style="color: hsl(0, 100%, 40%);">-               ies[lengthof(ies)] := tr_CbspChannelInd(?) ifpresent;</span><br><span style="color: hsl(120, 100%, 40%);">+         testcase.stop("TITAN > 6.5.0 doesn't support this");</span><br><span style="color: hsl(120, 100%, 40%);">+         //ies[lengthof(ies)] := tr_CbspChannelInd(?) ifpresent;</span><br><span>      } else if (not istemplatekind(channel_ind, "omit")) {</span><br><span>              ies[lengthof(ies)] := tr_CbspChannelInd(channel_ind);</span><br><span>        }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/17908">change 17908</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/17908"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia401c2d696979c0062872bca8da62c2ea153427b </div>
<div style="display:none"> Gerrit-Change-Number: 17908 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>