From 32a7b8cc4e78799c6447064b9f5576c7f16c4f88 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Wed, 5 Jan 2022 03:12:45 +0100 Subject: [PATCH] avr: use a stack size of 512 bytes for testing The goroutine tests are failing with the default 256 byte stack size. --- main_test.go | 4 +--- targets/simavr.json | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 targets/simavr.json diff --git a/main_test.go b/main_test.go index e8dbf7d1..5cd4fefd 100644 --- a/main_test.go +++ b/main_test.go @@ -173,9 +173,7 @@ func TestBuild(t *testing.T) { avrTests = append(avrTests, t) } } - opts := optionsFromTarget("atmega1284p", sema) - opts.Scheduler = "tasks" - runPlatTests(opts, avrTests, t) + runPlatTests(optionsFromTarget("simavr", sema), avrTests, t) }) if runtime.GOOS == "linux" { diff --git a/targets/simavr.json b/targets/simavr.json new file mode 100644 index 00000000..de40d524 --- /dev/null +++ b/targets/simavr.json @@ -0,0 +1,5 @@ +{ + "inherits": ["atmega1284p"], + "scheduler": "tasks", + "default-stack-size": 512 +}