diff --git a/src/runtime/trace/trace_stack_test.go b/src/runtime/trace/trace_stack_test.go index 0275279a6b..e7b8d57659 100644 --- a/src/runtime/trace/trace_stack_test.go +++ b/src/runtime/trace/trace_stack_test.go @@ -128,7 +128,8 @@ func TestTraceSymbolize(t *testing.T) { wp.Write(data[:]) <-pipeReadDone - oldGoMaxProcs := runtime.GOMAXPROCS(1) + oldGoMaxProcs := runtime.GOMAXPROCS(0) + runtime.GOMAXPROCS(oldGoMaxProcs + 1) Stop()