From e77a65969843a3653d6ec7d0983b69b1243ca95b Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 9 Oct 2023 23:36:18 +0000 Subject: [PATCH] cmsis_dsp: remove handling of old ztest API Old ztest API is deprecated, so no need for the conditional code here. Signed-off-by: Anas Nashif --- tests/lib/cmsis_dsp/common/test_common.h | 44 ------------------------ 1 file changed, 44 deletions(-) diff --git a/tests/lib/cmsis_dsp/common/test_common.h b/tests/lib/cmsis_dsp/common/test_common.h index 033245ab812..f65637ac93b 100644 --- a/tests/lib/cmsis_dsp/common/test_common.h +++ b/tests/lib/cmsis_dsp/common/test_common.h @@ -26,7 +26,6 @@ #define ASSERT_MSG_ERROR_LIMIT_EXCEED "error limit exceeded" #define ASSERT_MSG_INCORRECT_COMP_RESULT "incorrect computation result" -#if defined(CONFIG_ZTEST_NEW_API) #define DEFINE_TEST_VARIANT1(suite, name, variant, a1) \ ZTEST(suite, test_##name##_##variant) \ { \ @@ -68,49 +67,6 @@ { \ test_##name(a1, a2, a3, a4, a5, a6, a7); \ } -#else /* !defined(CONFIG_ZTEST_NEW_API) */ -#define DEFINE_TEST_VARIANT1(name, variant, a1) \ - static void test_##name##_##variant(void) \ - { \ - test_##name(a1); \ - } - -#define DEFINE_TEST_VARIANT2(name, variant, a1, a2) \ - static void test_##name##_##variant(void) \ - { \ - test_##name(a1, a2); \ - } - -#define DEFINE_TEST_VARIANT3(name, variant, a1, a2, a3) \ - static void test_##name##_##variant(void) \ - { \ - test_##name(a1, a2, a3); \ - } - -#define DEFINE_TEST_VARIANT4(name, variant, a1, a2, a3, a4) \ - static void test_##name##_##variant(void) \ - { \ - test_##name(a1, a2, a3, a4); \ - } - -#define DEFINE_TEST_VARIANT5(name, variant, a1, a2, a3, a4, a5) \ - static void test_##name##_##variant(void) \ - { \ - test_##name(a1, a2, a3, a4, a5); \ - } - -#define DEFINE_TEST_VARIANT6(name, variant, a1, a2, a3, a4, a5, a6) \ - static void test_##name##_##variant(void) \ - { \ - test_##name(a1, a2, a3, a4, a5, a6); \ - } - -#define DEFINE_TEST_VARIANT7(name, variant, a1, a2, a3, a4, a5, a6, a7) \ - static void test_##name##_##variant(void) \ - { \ - test_##name(a1, a2, a3, a4, a5, a6, a7); \ - } -#endif /* !defined(CONFIG_ZTEST_NEW_API) */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-function"