From dbf700316269b1617ceff36ebdf607bbd2a205a4 Mon Sep 17 00:00:00 2001 From: Christopher Friedt Date: Fri, 19 Jan 2024 08:25:27 -0500 Subject: [PATCH] tests: posix + libc: qemu_x86*: use dynamic stack size of 4096 For qemu_x86 and qemu_x86_64, it would seem that heap-allocated thread stacks, as well as thread stacks defined via K_THREAD_STACK_ARRAY_DEFINE(), must be at least 4096 bytes in size. Using those sizes will ensure that these tests do not fail with stack overflows or MMU faults. Signed-off-by: Christopher Friedt --- tests/lib/c_lib/thrd/boards/qemu_x86.conf | 1 + tests/lib/c_lib/thrd/boards/qemu_x86_64.conf | 1 + tests/posix/common/boards/qemu_x86.conf | 1 + tests/posix/common/boards/qemu_x86_64.conf | 1 + 4 files changed, 4 insertions(+) create mode 100644 tests/lib/c_lib/thrd/boards/qemu_x86.conf create mode 100644 tests/lib/c_lib/thrd/boards/qemu_x86_64.conf create mode 100644 tests/posix/common/boards/qemu_x86.conf create mode 100644 tests/posix/common/boards/qemu_x86_64.conf diff --git a/tests/lib/c_lib/thrd/boards/qemu_x86.conf b/tests/lib/c_lib/thrd/boards/qemu_x86.conf new file mode 100644 index 00000000000..2fa43926ee4 --- /dev/null +++ b/tests/lib/c_lib/thrd/boards/qemu_x86.conf @@ -0,0 +1 @@ +CONFIG_DYNAMIC_THREAD_STACK_SIZE=4096 diff --git a/tests/lib/c_lib/thrd/boards/qemu_x86_64.conf b/tests/lib/c_lib/thrd/boards/qemu_x86_64.conf new file mode 100644 index 00000000000..2fa43926ee4 --- /dev/null +++ b/tests/lib/c_lib/thrd/boards/qemu_x86_64.conf @@ -0,0 +1 @@ +CONFIG_DYNAMIC_THREAD_STACK_SIZE=4096 diff --git a/tests/posix/common/boards/qemu_x86.conf b/tests/posix/common/boards/qemu_x86.conf new file mode 100644 index 00000000000..2fa43926ee4 --- /dev/null +++ b/tests/posix/common/boards/qemu_x86.conf @@ -0,0 +1 @@ +CONFIG_DYNAMIC_THREAD_STACK_SIZE=4096 diff --git a/tests/posix/common/boards/qemu_x86_64.conf b/tests/posix/common/boards/qemu_x86_64.conf new file mode 100644 index 00000000000..2fa43926ee4 --- /dev/null +++ b/tests/posix/common/boards/qemu_x86_64.conf @@ -0,0 +1 @@ +CONFIG_DYNAMIC_THREAD_STACK_SIZE=4096