tests: arch: arm: move ZLI test to arm_irq_advanced_features suite

Move the zero-latency IRQ test into the new
arm_irq_advanced_features' test suite. Skip
running the test for non Mainline Cortex-M.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2019-12-18 16:08:03 +01:00 committed by Andrew Boie
commit a24082d1be
7 changed files with 13 additions and 9 deletions

View file

@ -8,6 +8,8 @@
#include <arch/cpu.h>
#include <arch/arm/aarch32/cortex_m/cmsis.h>
#if defined(CONFIG_ZERO_LATENCY_IRQS)
static volatile int test_flag;
void arm_zero_latency_isr_handler(void *args)
@ -83,6 +85,12 @@ void test_arm_zero_latency_irqs(void)
irq_unlock(key);
}
#else
void test_arm_zero_latency_irqs(void)
{
TC_PRINT("Skipped (Cortex-M Mainline only)\n");
}
#endif /* CONFIG_ZERO_LATENCY_IRQS */
/**
* @}
*/

View file

@ -4,10 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#if !defined(CONFIG_ARMV7_M_ARMV8_M_MAINLINE)
#error test can only run on Cortex-M3/M4/M7/M33 MCUs
#endif
#include <ztest.h>
extern void test_arm_zero_latency_irqs(void);

View file

@ -0,0 +1,5 @@
tests:
arch.arm.irq_advanced_features:
filter: CONFIG_ARMV6_M_ARMV8_M_BASELINE or CONFIG_ARMV7_M_ARMV8_M_MAINLINE
tags: arm interrupt
arch_whitelist: arm

View file

@ -1,5 +0,0 @@
tests:
arch.arm.zero_latency_interrupts:
filter: CONFIG_ARMV7_M_ARMV8_M_MAINLINE
tags: arm interrupt
arch_whitelist: arm