From a9689d2e0b8eda51da84732e963cbad35f797552 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sat, 23 Aug 2025 15:05:51 +1000 Subject: [PATCH] time: skip TestLongAdjustTimers in short mode on single CPU systems The OpenBSD armv7 port does not support SMP - on this platform the TestLongAdjustTimers test passes in ~46 seconds on the openbsd/arm builder when there is no other CPU contention, however it will almost always fail when there is any other load. Change-Id: Idf1c47b40376c749886843cdae11289c0984f714 Reviewed-on: https://go-review.googlesource.com/c/go/+/698556 TryBot-Result: Gopher Robot Auto-Submit: Michael Knyszek Commit-Queue: Cherry Mui Run-TryBot: Joel Sing Reviewed-by: Michael Knyszek LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui --- src/time/tick_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/time/tick_test.go b/src/time/tick_test.go index d89d2dbdea..dcbbcdb145 100644 --- a/src/time/tick_test.go +++ b/src/time/tick_test.go @@ -154,6 +154,10 @@ func TestLongAdjustTimers(t *testing.T) { if runtime.GOOS == "android" || runtime.GOOS == "ios" || runtime.GOOS == "plan9" { t.Skipf("skipping on %s - too slow", runtime.GOOS) } + if testing.Short() && runtime.NumCPU() < 2 { + t.Skipf("skipping in short mode, insufficient CPUs") + } + t.Parallel() var wg sync.WaitGroup defer wg.Wait() -- 2.52.0