Sets a test defined by TestName as finished. Note that the TestName-input must match a TestName that has been previously defined in this test suite.
Inputs
Name
Type
Description
TestName
T_MaxString
Variables
Name
Type
Default
Description
Counter
UINT
0
FoundTestName
BOOL
FALSE
FinishedAt
LWORD
cpu cycle counter in 100ns precision
FailedLookupCounter
UINT
0
AlreadyPrintedFinalWarning
BOOL
FALSE
MaxNumberOfNonExistentTestNamesFailedLookups
UINT
3
Declaration source
(* Sets a test defined by TestName as finished. Note that the TestName-input must match
a TestName that has been previously defined in this test suite. *)
FUNCTION TEST_FINISHED_NAMED
VAR_INPUT
TestName : T_MaxString;
END_VAR
VAR
Counter : UINT := 0;
FoundTestName : BOOL := FALSE;
FinishedAt : LWORD; // cpu cycle counter in 100ns precision
END_VAR
VAR_STAT
FailedLookupCounter : UINT := 0;
AlreadyPrintedFinalWarning : BOOL := FALSE;
END_VAR
VAR CONSTANT
MaxNumberOfNonExistentTestNamesFailedLookups : UINT := 3;
END_VAR