tests: unit: move the intmath test to new ztest API

Migrate the testsuite tests/unit/intmath to the new ztest API.

Signed-off-by: Enjia Mai <enjia.mai@intel.com>
This commit is contained in:
Enjia Mai 2022-08-21 15:29:06 +08:00 committed by Carles Cufí
commit a729f4d065
2 changed files with 3 additions and 11 deletions

View file

@ -71,7 +71,7 @@ ROLLOVER_CHECK(int, 2147483647, -2147483648);
* @details Test multiplication and division of two * @details Test multiplication and division of two
* integers * integers
*/ */
void test_intmath(void) ZTEST(intmath, test_intmath)
{ {
/* /*
* Declaring volatile so the compiler doesn't try to optimize any * Declaring volatile so the compiler doesn't try to optimize any
@ -99,13 +99,4 @@ void test_intmath(void)
* @} * @}
*/ */
ZTEST_SUITE(intmath, NULL, NULL, NULL, NULL, NULL);
void test_main(void)
{
ztest_test_suite(intmath,
ztest_unit_test(test_intmath)
);
ztest_run_test_suite(intmath);
}

View file

@ -0,0 +1 @@
CONFIG_ZTEST_NEW_API=y