1
0
mirror of https://github.com/golang/go synced 2024-11-14 17:50:31 -07:00
go/doc/next
sivchari 5d29578fd5 testing: add TB.SetGOMAXPROCS function
Add a new method TB.SetGOMAXPROCS which sets variable of GOMAXPROCS.
This method aims to set a variable for the isolated lifetime of the test and cleans up.
And unset this when the test ends.
This method disables the test or benchmark from running in
parallel.

Fixes: #62020

Change-Id: Iae44109d0def35cc47049c3ca4cd5306173d52ee
Signed-off-by: sivchari <shibuuuu5@gmail.com>
Reviewed-on: https://go-review.googlesource.com/c/go/+/519235
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-03-21 20:26:36 +00:00
..
6-stdlib testing: add TB.SetGOMAXPROCS function 2024-03-21 20:26:36 +00:00
1-intro.md
2-language.md
3-tools.md Revert "cmd/go/internal/test: add 'tests' vet check to 'go test' suite" 2024-03-14 16:58:10 +00:00
4-runtime.md
5-toolchain.md
7-ports.md doc/go1.23: document macOS requirements 2024-02-14 18:18:25 +00:00