Internal error: Setting the verdict in invalid state. [message #1836822] |
Thu, 14 January 2021 19:27 |
David Rupprecht Messages: 5 Registered: November 2020 |
Junior Member |
|
|
Dear all,
I'm trying to get the UE conformance testing (TS 36.523) running. At the moment, I'm stuck at the following runtime error :
CommonDefs.ttcn:509(function:f_SetVerdict) Dynamic test case error: Internal error: Setting the verdict in invalid state.
The function f_SetVerdict looks as follows and does not run on a particular System.
function f_SetVerdict(verdicttype p_Verdict,
charstring p_FileName,
LineNo_Type p_LineNo,
charstring p_Msg)
{
var charstring v_OutputLine := fl_FormatLog(p_FileName, p_LineNo, p_Msg);
setverdict(p_Verdict, v_OutputLine);
}
According to the titan runtime the error occurs when the verdict is not enabled
void TTCN_Runtime::setverdict(verdicttype new_value, const char* reason)
{
if (verdict_enabled()) {
....
} else {
TTCN_error("Internal error: Setting the verdict in invalid state.");
}
and the executor_state is in the following state.
boolean TTCN_Runtime::verdict_enabled()
{
return executor_state == SINGLE_TESTCASE ||
(executor_state >= MTC_TESTCASE && executor_state <= MTC_EXIT) ||
(executor_state >= PTC_INITIAL && executor_state <= PTC_EXIT);
}
However, the error occurs during the initialization phase (see _titan.log), thus I can not explain why this error occurs. What precondition must be matched to call setverdict in a function? How can I get the executor_state thus it matches the needed states from the runtime.
Thanks and best regards,
David
-
Attachment: _titan.log
(Size: 31.57KB, Downloaded 78 times)
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03769 seconds