MPS issue job004096

TitleMMQA fails to handle assertion failures
Statusclosed
Priorityoptional
Assigned userGareth Rees
OrganizationRavenbrook
DescriptionIf an MMQA test case fails an assertion, then the output looks like this:

    Unexpected line in output:
    assert_or_abort=true

and the test case quits without a PASS or FAIL indication.
AnalysisThe output of asserts() in test/test/testlib/testlib.c is missing the initial ! that would indicate that the assert_or_abort=true line is setting a test output variable. This output should in any case be generated by calling report() as in mmqa_assert_handler instead of trying to emulate report().
How foundautomated_test
EvidenceNone
Created byGareth Rees
Created on2018-07-16 11:33:38
Last modified byGareth Rees
Last modified on2018-07-16 12:51:41
History2018-07-16 GDR Created.

Fixes

Change Effect Date User Description
194667 closed 2018-07-16 12:51:41 Gareth Rees Use the functions comment(), report() and vreport() to ensure that assertion and error output is correctly formatted and the intention is clear.