aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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) {