tests: ztest: test_main takes no arguments

Some tests were using test_main with arguments causing conflicts during
build.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-04-01 08:20:11 -05:00 committed by Anas Nashif
parent e9cc4ac3db
commit fe476cc036
6 changed files with 8 additions and 7 deletions

View File

@ -46,8 +46,9 @@ void test_collecting(void)
}
}
void test_main(void *p1, void *p2, void *p3)
void test_main(void)
{
ztest_test_suite(test_util, ztest_unit_test(test_collecting));
ztest_test_suite(test_util,
ztest_unit_test(test_collecting));
ztest_run_test_suite(test_util);
}

View File

@ -138,7 +138,7 @@ void test_write_confirm(void)
zassert_equal(1, readout[0] & 0xff, "confirmation error");
}
void test_main(void *p1, void *p2, void *p3)
void test_main(void)
{
ztest_test_suite(test_mcuboot_interface,
ztest_unit_test(test_bank_erase),

View File

@ -143,7 +143,7 @@ void fcb_test_rotate(void);
void fcb_test_multi_scratch(void);
void fcb_test_last_of_n(void);
void test_main(void *p1, void *p2, void *p3)
void test_main(void)
{
ztest_test_suite(test_fcb,
ztest_unit_test_setup_teardown(fcb_test_len,

View File

@ -325,7 +325,7 @@ void test_config_save_3_fcb(void);
void test_config_compress_reset(void);
void test_config_save_one_fcb(void);
void test_main(void *p1, void *p2, void *p3)
void test_main(void)
{
ztest_test_suite(test_config_fcb,
/* Config tests */

View File

@ -208,7 +208,7 @@ void test_config_save_in_file(void);
void test_config_save_one_file(void);
void test_config_compress_file(void);
void test_main(void *p1, void *p2, void *p3)
void test_main(void)
{
ztest_test_suite(test_config_fcb,
/* Config tests */

View File

@ -96,7 +96,7 @@ void flash_map_test_case_2(void)
}
void test_main(void *p1, void *p2, void *p3)
void test_main(void)
{
ztest_test_suite(test_flash_map,
ztest_unit_test(flash_map_test_case_2));