Commit a729f4d0 authored by Enjia Mai's avatar Enjia Mai Committed by Carles Cufi
Browse files

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



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

Signed-off-by: default avatarEnjia Mai <enjia.mai@intel.com>
parent 679dc0fe
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ ROLLOVER_CHECK(int, 2147483647, -2147483648);
 * @details Test multiplication and division of two
 * integers
 */
void test_intmath(void)
ZTEST(intmath, test_intmath)
{
	/*
	 * Declaring volatile so the compiler doesn't try to optimize any
@@ -99,13 +99,4 @@ void test_intmath(void)
 * @}
 */



void test_main(void)
{
	ztest_test_suite(intmath,
			 ztest_unit_test(test_intmath)
			 );

	ztest_run_test_suite(intmath);
}
ZTEST_SUITE(intmath, NULL, NULL, NULL, NULL, NULL);
+1 −0
Original line number Diff line number Diff line
CONFIG_ZTEST_NEW_API=y