tests: workqueue: avoid filters

Use Kconfig to configure watchdog instead of using expensive filters.

Also disable CONFIG_TEST_HW_STACK_PROTECTION for this test so we do not
have to create special cases.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2024-11-24 12:09:36 -05:00 committed by Henrik Brix Andersen
commit 5b29fff725
3 changed files with 10 additions and 12 deletions

View file

@ -0,0 +1,9 @@
# Copyright (c) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
source "Kconfig.zephyr"
if WDT_SAM
config WDT_DISABLE_AT_BOOT
bool "Disable at boot"
default y
endif

View file

@ -1,2 +1,3 @@
CONFIG_ZTEST=y
CONFIG_MP_MAX_NUM_CPUS=1
CONFIG_TEST_HW_STACK_PROTECTION=n

View file

@ -4,17 +4,5 @@ common:
- workqueue
tests:
kernel.workqueue.critical:
platform_exclude: nsim/nsim_sem/mpu_stack_guard
filter: not CONFIG_WDT_SAM
integration_platforms:
- qemu_x86
kernel.workqueue.critical.sam:
filter: CONFIG_WDT_SAM
extra_configs:
- CONFIG_WDT_DISABLE_AT_BOOT=y
integration_platforms:
- sam_e70_xplained/same70q21
kernel.workqueue.critical.nsim:
platform_allow: nsim/nsim_sem/mpu_stack_guard
extra_configs:
- CONFIG_TEST_HW_STACK_PROTECTION=n