aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2025-08-23 03:02:57 +1000
committerGopher Robot <gobot@golang.org>2025-08-25 10:50:12 -0700
commit9ae2f1fb574e879402bc5bbac1d2b5d84acce6cb (patch)
tree54c7d526166c92595788969058b963bfb0f13c31 /src
parentbbd5342a62baa2fa6b42d444b05717c2563d0764 (diff)
downloadgo-9ae2f1fb574e879402bc5bbac1d2b5d84acce6cb.tar.xz
internal/trace: skip async preempt off tests on low end systems
The OpenBSD armv7 port does not support SMP - on this platform the trace tests take ~300 seconds to run when async preempt is disabled, which then times out on the builder. Skip these tests when run in short mode on a single CPU system. Change-Id: I9a697d5ba2b20652f76dcc97bd178a4ee8f1a2a0 Reviewed-on: https://go-review.googlesource.com/c/go/+/698555 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Joel Sing <joel@sing.id.au> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/internal/trace/trace_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/internal/trace/trace_test.go b/src/internal/trace/trace_test.go
index ce79960065..4824937b70 100644
--- a/src/internal/trace/trace_test.go
+++ b/src/internal/trace/trace_test.go
@@ -694,6 +694,9 @@ func testTraceProg(t *testing.T, progName string, extra func(t *testing.T, trace
runTest(t, false, "")
})
t.Run("AsyncPreemptOff", func(t *testing.T) {
+ if testing.Short() && runtime.NumCPU() < 2 {
+ t.Skip("skipping trace async preempt off tests in short mode")
+ }
runTest(t, false, "asyncpreemptoff=1")
})
t.Run("Stress", func(t *testing.T) {