1
0
mirror of https://github.com/golang/go synced 2024-11-25 10:57:58 -07:00
go/api/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
..
42888.txt runtime/debug: SetCrashOutput sets the FD for fatal panics 2024-01-31 16:50:42 +00:00
44940.txt unicode/utf16: add func RuneLen 2024-03-07 19:08:48 +00:00
50102.txt archive/tar: add FileInfoNames interface 2024-03-15 16:01:50 +00:00
57151.txt path/filepath: add Localize 2024-02-26 18:08:14 +00:00
59473.txt net/http/httptest: add NewRequestWithContext 2024-03-11 18:09:14 +00:00
60427.txt reflect: add Overflow methods to Type 2024-02-28 14:08:38 +00:00
61472.txt net/http: add Request.CookiesNamed 2024-03-20 16:17:16 +00:00
61696.txt sync: add Map.Clear 2024-02-01 15:34:22 +00:00
62020.txt testing: add TB.SetGOMAXPROCS function 2024-03-21 20:26:36 +00:00
62254.txt net: add KeepAliveConfig and implement SetKeepAliveConfig 2024-02-20 06:04:31 +00:00
62484.txt os: implement CopyFS 2024-02-23 00:19:54 +00:00
65238.txt slices: add func Repeat 2024-03-19 21:38:37 +00:00
66054.txt cmd/link,debug/elf: mark Go binaries with no branch target CFI on openbsd 2024-03-10 04:13:26 +00:00