Skip to content

Commit c57dc32

Browse files
committed
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.
1 parent ea3327a commit c57dc32

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

main_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,14 @@ func runPlatTests(options compileopts.Options, tests []string, t *testing.T) {
468468
continue
469469
}
470470
}
471+
if options.Target == "riscv-qemu" {
472+
switch name {
473+
case "finalizerinvariants.go":
474+
// The finalizer code stops or fails on multicore RISC-V.
475+
// See https://github.com/tinygo-org/tinygo/issues/5679
476+
continue
477+
}
478+
}
471479

472480
name := name // redefine to avoid race condition
473481
t.Run(name, func(t *testing.T) {

0 commit comments

Comments
 (0)