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:
parent
679dc0fe3d
commit
a729f4d065
2 changed files with 3 additions and 11 deletions
|
@ -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);
|
|
||||||
}
|
|
||||||
|
|
1
tests/unit/intmath/prj.conf
Normal file
1
tests/unit/intmath/prj.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_ZTEST_NEW_API=y
|
Loading…
Add table
Add a link
Reference in a new issue