tests: ipc: move to new ztest api

Move tests/subsys/ipc to new ztest API.

Signed-off-by: NingX Zhao <ningx.zhao@intel.com>
This commit is contained in:
NingX Zhao 2022-07-04 09:55:06 +08:00 committed by Fabio Baltieri
parent 3e40c590f8
commit aa49e988ce
2 changed files with 3 additions and 7 deletions

View File

@ -4,3 +4,4 @@
CONFIG_ZTEST=y
CONFIG_MMU=y
CONFIG_IPC_SERVICE=y
CONFIG_ZTEST_NEW_API=y

View File

@ -24,7 +24,7 @@ static struct ipc_ept_cfg ept_cfg = {
},
};
void test_ipc_service(void)
ZTEST(ipc_service, test_ipc_service)
{
const struct device *dev_10;
const struct device *dev_20;
@ -69,9 +69,4 @@ void test_ipc_service(void)
zassert_ok(ret, "ipc_service_send() failed", NULL);
}
void test_main(void)
{
ztest_test_suite(ipc_service,
ztest_unit_test(test_ipc_service));
ztest_run_test_suite(ipc_service);
}
ZTEST_SUITE(ipc_service, NULL, NULL, NULL, NULL, NULL);