tests: arch: arm: move test arm_irq_zero_latency_levels to new ztest API
Migrate the testsuite tests/arch/arm/arm_irq_zero_latency_levels to the new ztest API. Signed-off-by: Shaoan Li <shaoanx.li@intel.com>
This commit is contained in:
parent
8e6322a21a
commit
80f62389ac
@ -1,4 +1,5 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_DYNAMIC_INTERRUPTS=y
|
||||
CONFIG_DYNAMIC_DIRECT_INTERRUPTS=y
|
||||
CONFIG_ZERO_LATENCY_IRQS=y
|
||||
|
||||
@ -147,8 +147,7 @@ static int find_unused_irq(int start)
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
void test_arm_zero_latency_levels(void)
|
||||
ZTEST(arm_irq_zero_latency_levels, test_arm_zero_latency_levels)
|
||||
{
|
||||
/*
|
||||
* Confirm that a zero-latency interrupt with lower priority will be
|
||||
@ -200,10 +199,4 @@ void test_arm_zero_latency_levels(void)
|
||||
irq_unlock(key);
|
||||
}
|
||||
|
||||
|
||||
void test_main(void)
|
||||
{
|
||||
ztest_test_suite(arm_irq_zero_latency_levels,
|
||||
ztest_unit_test(test_arm_zero_latency_levels));
|
||||
ztest_run_test_suite(arm_irq_zero_latency_levels);
|
||||
}
|
||||
ZTEST_SUITE(arm_irq_zero_latency_levels, NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user