MFU_ASSERT_FAIL_Z

Signifies that a test case running under the Micro Focus Unit Testing Framework has failed, and outputs a null-terminated message to the test report.

Syntax:

call "MFU_ASSERT_FAIL_Z" using by reference msg
end-call.

Parameters:

msg
pic x(n)

On Entry:

msg
The message that is used in the test report output. This message string is null-terminated.

On Exit:

None.

Example:

call "MFU_ASSERT_FAIL_Z" using
                       by reference z"Condition 6 has failed."
end-call.

Comments:

The unit testing library routines use the mfunit_prototype.cpy copybook for call prototyping. If required, it is available from the cpylib directory of your product installation directory. Another of the unit testing copybooks (mfunit.cpy) contains a level-78 constant, MFU-ASSERT-FAIL-Z, which you can use in your programs to invoke this library routine.