tests: thread_error_case: fix incorrect userspace filtering
The filter here should be used to filter for capability:
whether the platform configuration supports userspace. And if
it does support userspace, we then enable CONFIG_TEST_USERSPACE
(and thus CONFIG_USERSPACE) for testing. We should not be
filtering for whether userspace is enabled, but should really
be filtering for whether userspace is supported.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
diff --git a/tests/kernel/threads/thread_error_case/testcase.yaml b/tests/kernel/threads/thread_error_case/testcase.yaml
index 69106b0..171bc8b 100644
--- a/tests/kernel/threads/thread_error_case/testcase.yaml
+++ b/tests/kernel/threads/thread_error_case/testcase.yaml
@@ -4,7 +4,7 @@
- kernel
- threads
- userspace
- filter: CONFIG_USERSPACE
+ filter: CONFIG_ARCH_HAS_USERSPACE
ignore_faults: true
integration_platforms:
- qemu_x86