HACK: avoid compilation error with TITAN > 6.5.0

it seems TITAN no longer supports 'ifpresent' in certain situations,
see https://www.eclipse.org/forums/index.php/m/1826175/#msg_1826175

Let's make the tests fail if we actually run in those cases, but at
least compile fine and be able to execute all the other tests.

Change-Id: Ia401c2d696979c0062872bca8da62c2ea153427b
This commit is contained in:
Harald Welte 2020-04-20 18:01:00 +02:00
parent 885de1cdb5
commit e53a23db70
1 changed files with 8 additions and 4 deletions

View File

@ -368,7 +368,8 @@ return template CBSP_PDU {
tr_NewSerNo(new_ser_nr)
};
if (istemplatekind(cell_list, "*")) {
ies[lengthof(ies)] := tr_CbspCellList ifpresent;
testcase.stop("TITAN > 6.5.0 doesn't support this");
//ies[lengthof(ies)] := tr_CbspCellList ifpresent;
} else if (istemplatekind(cell_list, "?")) {
ies[lengthof(ies)] := tr_CbspCellList(?);
} else if (not istemplatekind(cell_list, "omit")) {
@ -411,7 +412,8 @@ return template CBSP_PDU {
tr_CbspNumComplList(compl_list)
};
if (istemplatekind(cell_list, "*")) {
ies[lengthof(ies)] := tr_CbspCellList ifpresent;
testcase.stop("TITAN > 6.5.0 doesn't support this");
//ies[lengthof(ies)] := tr_CbspCellList ifpresent;
} else if (istemplatekind(cell_list, "?")) {
ies[lengthof(ies)] := tr_CbspCellList(?);
} else if (not istemplatekind(cell_list, "omit")) {
@ -464,7 +466,8 @@ return template CBSP_PDU {
ies[lengthof(ies)] := tr_CbspNumComplList(compl_list);
}
if (istemplatekind(cell_list, "*")) {
ies[lengthof(ies)] := tr_CbspCellList ifpresent;
testcase.stop("TITAN > 6.5.0 doesn't support this");
//ies[lengthof(ies)] := tr_CbspCellList ifpresent;
} else if (istemplatekind(cell_list, "?")) {
ies[lengthof(ies)] := tr_CbspCellList(?);
} else if (not istemplatekind(cell_list, "omit")) {
@ -641,7 +644,8 @@ return template CBSP_PDU {
ies[lengthof(ies)] := tr_CbspCellList(cell_list);
}
if (istemplatekind(channel_ind, "*")) {
ies[lengthof(ies)] := tr_CbspChannelInd(?) ifpresent;
testcase.stop("TITAN > 6.5.0 doesn't support this");
//ies[lengthof(ies)] := tr_CbspChannelInd(?) ifpresent;
} else if (not istemplatekind(channel_ind, "omit")) {
ies[lengthof(ies)] := tr_CbspChannelInd(channel_ind);
}