Commit 76a8a73f authored by balaskoa's avatar balaskoa
Browse files

RAW_repeat tests are running after the bugfix

Change-Id: I4cc6b41219114759db5f8c2b002aa63f5a5d1fec
parent d99b1bbd
......@@ -54,8 +54,6 @@
#TrecofOper.tc_empty_record_element #DTE, unrecoverable (config file is necessary!)
#TrecofOper.tc_empty_record_element2 #DTE, unrecoverable
#record_test.tc_REC_string2ttcn_empty #fail, setting: nolegacy!!!
#RAW/RAW_repeat:
#RAW_repeat #TODO: 1 pass, 2 fail, see Bug 568518
#ucharstrOper:
#cstr_content.tc_unichar_utf8_var_hungarian_text #fails if the file is not UTF-8 but ISO
#Annex_E_variants.tc_utf8
......
......@@ -264,7 +264,7 @@ RAW_bitstring_test
#RAW/RAW_integer_test:
RAW_integer_test
#RAW/RAW_repeat:
#RAW_repeat #TODO: 1pass, 2 fail, see Bug 568518
RAW_repeat_test #fixed 3 pass, see also Bug 568518
#RAW/ustr
ustr.control
RAWCodingAttributes.control
......
......@@ -59,7 +59,7 @@
#JsonBasicAttributeTest.tc_rec_attr_metainfo_nameas
#JsonBasicAttributeTest
#RAW/RAW_repeat
#RAW_repeat #TODO: 1pass, 2 fail, see Bug 568518
#RAW_repeat_test #TODO: 1pass, 2 fail, see Bug 568518
[LOGGING]
# In this section you can specify the name of the log file and the classes of events
......
......@@ -59,7 +59,7 @@ with { extension "prototype(backtrack) decode(RAW)" }
// no spread record of
testcase tc_1() runs on CT {
var octetstring stream;
var octetstring stream := '010100020100030100040100'O ; // IE1, IE2, unknown IE
var PDU pdu_decoded;
var PDU pdu_expected := {
ie1_field := { ie_type := '01'O, len:=1, data := '00'O },
......@@ -69,14 +69,9 @@ testcase tc_1() runs on CT {
{ ie_type := '04'O, len:=1, data := '00'O}
}
}
var integer result;
stream := '010100020100030100040100'O // IE1, IE2, unknown IE
var integer result;
result:=dec_PDU_backtrack(stream,pdu_decoded);
log(stream);
log(result) // { ie1_field := { ie_type := '01'O, len := 1, data := '00'O }, ie2_field := { ie_type := '02'O, len := 1, data := '00'O }, unknown_ies := { { ie_type := '03'O, len := 1, data := '00'O }, { ie_type := '04'O, len := 1, data := '00'O } } }
log(pdu_decoded);
if (result != 0) {
setverdict(fail, "decoding failed");
} else if ( pdu_decoded != pdu_expected) {
......@@ -101,11 +96,7 @@ testcase tc_2() runs on CT {
}
}
var integer result;
// stream := '010100030100020100040100'O // IE1, unknown IE, IE2 -> IE2 added to the unknown_ies
result:=dec_PDU_backtrack(stream,pdu_decoded);
log(stream)
log(result) // { ie1_field := { ie_type := '01'O, len := 1, data := '00'O }, ie2_field := omit, unknown_ies := { { ie_type := '03'O, len := 1, data := '00'O }, { ie_type := '02'O, len := 1, data := '00'O }, { ie_type := '04'O, len := 1, data := '00'O } } }
log(pdu_decoded)
if (result != 0) {
setverdict(fail, "decoding failed");
} else if ( pdu_decoded != pdu_expected) {
......@@ -134,9 +125,6 @@ testcase tc_3() runs on CT {
var integer result;
result:=dec_PDU_backtrack(stream,pdu_decoded);
log(stream)
log(result) // { ie1_field := { ie_type := '01'O, len := 1, data := '00'O }, ie2_field := omit, unknown_ies := { { ie_type := '03'O, len := 1, data := '00'O }, { ie_type := '02'O, len := 1, data := '00'O }, { ie_type := '04'O, len := 1, data := '00'O } } }
log(pdu_decoded)
if (result != 0) {
setverdict(fail, "decoding failed");
} else if ( pdu_decoded != pdu_expected) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment