Skip to content

Commit

Permalink
fixup! examples, tests: Changes for the native64 board
Browse files Browse the repository at this point in the history
  • Loading branch information
fzi-haxel committed Feb 3, 2024
1 parent f603f91 commit 99ac6ba
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
6 changes: 5 additions & 1 deletion tests/core/thread_priority_inversion/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ endif
include $(RIOTBASE)/Makefile.include

CFLAGS += -DFANCY=$(FANCY)
CFLAGS += -DTHREAD_STACKSIZE_MAIN=THREAD_STACKSIZE_SMALL

# printf + task switch might not fit on the small stack for native64
ifneq ($(BOARD),native64)
CFLAGS += -DTHREAD_STACKSIZE_MAIN=THREAD_STACKSIZE_SMALL
endif
5 changes: 5 additions & 0 deletions tests/net/gnrc_netif_ieee802154/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ ifneq (,$(filter native native64,$(BOARD)))
USEMODULE += netdev
# somehow this breaks the test
DISABLE_MODULE += test_utils_print_stack_usage

# SOCKET_ZEP_MAC_STACKSIZE sometimes overflows for native64 in LLVM CI tests
ifeq ($(BOARD),native64)
CFLAGS += -DIEEE802154_STACKSIZE_DEFAULT=\(THREAD_STACKSIZE_DEFAULT\)
endif
else
USEMODULE += shell
USEMODULE += shell_cmds_default
Expand Down
5 changes: 5 additions & 0 deletions tests/periph/timer_periodic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ FEATURES_REQUIRED = periph_timer_periodic

USEMODULE += fmt

ifeq (llvm,$(TOOLCHAIN))
# FIXME: CI sometimes with "_native_popsig: real_read: Bad file descriptor"
TEST_ON_CI_BLACKLIST += native64
endif

include $(RIOTBASE)/Makefile.include
13 changes: 10 additions & 3 deletions tests/sys/sema_inv/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@
#include "sema_inv.h"
#include "ztimer.h"

char t1_stack[THREAD_STACKSIZE_SMALL];
char t2_stack[THREAD_STACKSIZE_SMALL];
char t3_stack[THREAD_STACKSIZE_SMALL];
#ifdef BOARD_NATIVE64
/* printf + task switch might not fit on the small stack for native64 */
#define TEST_THREAD_STACKSIZE THREAD_STACKSIZE_DEFAULT
#else
#define TEST_THREAD_STACKSIZE THREAD_STACKSIZE_SMALL
#endif

char t1_stack[TEST_THREAD_STACKSIZE];
char t2_stack[TEST_THREAD_STACKSIZE];
char t3_stack[TEST_THREAD_STACKSIZE];

struct thread_ctx {
sema_inv_t *sync;
Expand Down

0 comments on commit 99ac6ba

Please sign in to comment.