]> Cypherpunks repositories - gostls13.git/commit
runtime: remove -tags=threadprof in tests
authorIan Lance Taylor <iant@golang.org>
Wed, 19 Jan 2022 02:46:00 +0000 (18:46 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 20 Jan 2022 19:24:26 +0000 (19:24 +0000)
commit2c2e08144f79d8746384c2a483bf03532dc0c443
tree03d6c6174cb84db7f94cc1fa1fb98c7f173f9e10
parent65535bfe6dad2cb7535f6a5647b288e4489608f9
runtime: remove -tags=threadprof in tests

Use an enviroment variable rather than a build tag to control starting
a busy loop thread when testprogcgo starts. This lets us skip another
build that invokes the C compiler and linker, which should avoid
timeouts running the runtime tests.

Fixes #44422

Change-Id: I516668d71a373da311d844990236566ff63e6d72
Reviewed-on: https://go-review.googlesource.com/c/go/+/379294
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/crash_cgo_test.go
src/runtime/testdata/testprogcgo/threadprof.go