| Title | MMQA fails to handle assertion failures |
| Status | closed |
| Priority | optional |
| Assigned user | Gareth Rees |
| Organization | Ravenbrook |
| Description | If 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. |
| Analysis | The 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 found | automated_test |
| Evidence | None |
| Created by | Gareth Rees |
| Created on | 2018-07-16 11:33:38 |
| Last modified by | Gareth Rees |
| Last modified on | 2018-07-16 12:51:41 |
| History | 2018-07-16 GDR Created. |
| 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. |