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:
parent
3e40c590f8
commit
aa49e988ce
|
@ -4,3 +4,4 @@
|
|||
CONFIG_ZTEST=y
|
||||
CONFIG_MMU=y
|
||||
CONFIG_IPC_SERVICE=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue