mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
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:
committed by
Anas Nashif
parent
92ba428626
commit
25a553f800
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user