tests: drivers: ipm: Add TC_SUITE_START/TC_SUITE_END

Apparently, this test cannot be immediately converted to ztest, but
make the output match the standard ztest format, by wrapping it in
a testsuite brackets. (Also, "cleanup" testcase name, TC_END_RESULT
uses __func__ as the name, so just pass __func__ to TC_START either).

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
Paul Sokolovsky 2021-04-27 19:22:09 +03:00 committed by Anas Nashif
commit 25a553f800

View file

@ -79,7 +79,8 @@ void main(void)
int rv, i;
const struct device *ipm;
TC_START("Test IPM");
TC_SUITE_START("test_ipm");
TC_START(__func__);
ipm = device_get_binding("ipm_dummy0");
/* Try sending a raw string to the IPM device to show that the
@ -105,5 +106,6 @@ void main(void)
rv = TC_PASS;
TC_END_RESULT(rv);
TC_SUITE_END("test_ipm", rv);
TC_END_REPORT(rv);
}