OpenSTA logo OpenSTA SCL Reference
PASS TEST-CASE Command

PASS TEST-CASE Command

This command indicates that the current test case has succeeded. The test case success message is sent to the report log.

If no GOTO clause is specified, Script execution is resumed at the first command following the end of the test case section (i.e. the END TEST-CASE command). If a GOTO clause is specified, Script execution is resumed at the point identified by the clause label. If a valid command immediately follows the PASS TEST-CASE command that would not be executed because of the jump in Script execution, the compiler outputs a warning message when the Script is compiled, but still produces an object file (assuming there are no errors).

This command is only valid within a test case section of a Script. It can be repeated as often as required within a test case.

If the END TEST-CASE command is reached during execution of the Script, the test case is automatically considered to have succeeded, and the success message is sent to the report log.

Command Definition:

PASS TEST-CASE {GOTO label}

label

A label defined within the current scope of the Script to which control branches.

Example:

START TEST-CASE "Checking input rate"
	IF (Inp-Rate >= Min-Rate) THEN
		PASS TEST-CASE
	ELSE
		FAIL TEST-CASE
	ENDIF
END TEST-CASE

<<<
prev page
^^^
section start
>>>
next page