From 56ae0855be103cd4e6f7ff8613cd5ffbc0d2a1dd Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 1 Apr 2026 03:42:08 +0200 Subject: [PATCH] libtests/record02: Increase stack size The fetch() function requires a considerable amount of stack space. Increase the stack size accordingly. Signed-off-by: Sebastian Huber --- testsuites/libtests/record02/init.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/testsuites/libtests/record02/init.c b/testsuites/libtests/record02/init.c index 9ed21559dc..f68cce9832 100644 --- a/testsuites/libtests/record02/init.c +++ b/testsuites/libtests/record02/init.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Copyright (C) 2018, 2024 embedded brains GmbH & Co. KG + * Copyright (C) 2018, 2026 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -39,6 +39,8 @@ const char rtems_test_name[] = "RECORD 2"; +#define ITEM_COUNT_FOR_FETCH 256 + typedef struct { rtems_record_client_context client; } test_context; @@ -149,7 +151,7 @@ static void fetch( test_context *ctx ) { rtems_record_client_status cs; rtems_record_fetch_control control; - rtems_record_item items[ 256 ]; + rtems_record_item items[ ITEM_COUNT_FOR_FETCH ]; rtems_record_fetch_status fs; rtems_record_fetch_initialize( @@ -238,6 +240,10 @@ static void fatal_extension( #define CONFIGURE_INITIAL_EXTENSIONS \ INITIAL_EXTENSION, RTEMS_TEST_INITIAL_EXTENSION +/* The fetch() function requires a considerable amout of stack space */ +#define CONFIGURE_INIT_TASK_STACK_SIZE \ + ( RTEMS_MINIMUM_STACK_SIZE + 16 * ITEM_COUNT_FOR_FETCH ) + #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_RECORD_PER_PROCESSOR_ITEMS 512