test suite: mbed assert detection #929
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Currently when
MBED_ASSERT()
macro is used in test case source code or mbed SDK code as part of test case we do not detect assertion and test cases fail because of timeout (test case result: TIMEOUT).We want to detect assertion and end test case as soon as possible.
This small update changes how host test supervising script looks for prints. Now we also check for mbed assertion printout and if found we exit with
MBED_ASSERT
test case test result.Testing
We are looking for mbed assert string. Example mbed assert string structure:
Example 1. mbed assert detection missing from host test supervising script:
Example 2. mbed assert detection added to host test supervising script:
Test suite regression for one board (expected one assert for UT_BUSOUT unit test)