diff --git a/tests/subsys/ipc/ipc_service/prj.conf b/tests/subsys/ipc/ipc_service/prj.conf index 01e20c4e9b9..67befb6214a 100644 --- a/tests/subsys/ipc/ipc_service/prj.conf +++ b/tests/subsys/ipc/ipc_service/prj.conf @@ -4,3 +4,4 @@ CONFIG_ZTEST=y CONFIG_MMU=y CONFIG_IPC_SERVICE=y +CONFIG_ZTEST_NEW_API=y diff --git a/tests/subsys/ipc/ipc_service/src/main.c b/tests/subsys/ipc/ipc_service/src/main.c index 373c3a09af2..a017c3643d1 100644 --- a/tests/subsys/ipc/ipc_service/src/main.c +++ b/tests/subsys/ipc/ipc_service/src/main.c @@ -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);