tests: kernel: common: rename test boot_delay
rename boot_delay function name for clarity and change doxygen group to be more generic and part of the init group. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
c815b062c6
commit
ac7756d4b1
2 changed files with 7 additions and 5 deletions
|
@ -9,7 +9,7 @@
|
|||
#define NSEC_PER_MSEC (uint64_t)(NSEC_PER_USEC * USEC_PER_MSEC)
|
||||
/**
|
||||
* @brief Test delay during boot
|
||||
* @defgroup kernel_bootdelay_tests Init
|
||||
* @defgroup kernel_init_tests Init
|
||||
* @ingroup all_tests
|
||||
* @{
|
||||
*/
|
||||
|
@ -17,14 +17,16 @@
|
|||
/**
|
||||
* @brief This module verifies the delay specified during boot.
|
||||
*/
|
||||
void test_verify_bootdelay(void)
|
||||
void test_bootdelay(void)
|
||||
{
|
||||
uint32_t current_cycles = k_cycle_get_32();
|
||||
|
||||
/* compare this with the boot delay specified */
|
||||
zassert_true(k_cyc_to_ns_floor64(current_cycles) >=
|
||||
(NSEC_PER_MSEC * CONFIG_BOOT_DELAY),
|
||||
"boot delay not executed");
|
||||
"boot delay not executed: %d < %d",
|
||||
(uint32_t)k_cyc_to_ns_floor64(current_cycles),
|
||||
(NSEC_PER_MSEC * CONFIG_BOOT_DELAY));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -31,7 +31,7 @@ extern void test_clock_cycle(void);
|
|||
extern void test_clock_uptime(void);
|
||||
extern void test_multilib(void);
|
||||
extern void test_thread_context(void);
|
||||
extern void test_verify_bootdelay(void);
|
||||
extern void test_bootdelay(void);
|
||||
extern void test_irq_offload(void);
|
||||
|
||||
/**
|
||||
|
@ -99,7 +99,7 @@ static void test_bounds_check_mitigation(void)
|
|||
void test_main(void)
|
||||
{
|
||||
ztest_test_suite(common,
|
||||
ztest_unit_test(test_verify_bootdelay),
|
||||
ztest_unit_test(test_bootdelay),
|
||||
ztest_unit_test(test_irq_offload),
|
||||
ztest_unit_test(test_byteorder_memcpy_swap),
|
||||
ztest_unit_test(test_byteorder_mem_swap),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue