From c8be5c349d1f65908bff484b58ce246ccb4d2fc4 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sun, 13 Sep 2026 12:03:04 +0200 Subject: [PATCH] test: skip finalizerinvariants.go on riscv-qemu The finalizer code stops or fails on multicore RISC-V. Locally, 10 of 100 runs fail. 5 runs stop, with one hart in runGC and the other harts in schedulerUnlockAndWait. 5 runs fail with mcause=5 in runtime.scanConservative. Skip the test on this target until #5679 is corrected. --- main_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main_test.go b/main_test.go index 1af04dc8a..af9b68809 100644 --- a/main_test.go +++ b/main_test.go @@ -468,6 +468,14 @@ func runPlatTests(options compileopts.Options, tests []string, t *testing.T) { continue } } + if options.Target == "riscv-qemu" { + switch name { + case "finalizerinvariants.go": + // The finalizer code stops or fails on multicore RISC-V. + // See https://github.com/tinygo-org/tinygo/issues/5679 + continue + } + } name := name // redefine to avoid race condition t.Run(name, func(t *testing.T) {