]> Cypherpunks repositories - gostls13.git/commit
runtime: deflake CGO traceback tests
authorMark Pulford <mark@kyne.com.au>
Thu, 13 Feb 2020 21:34:31 +0000 (08:34 +1100)
committerIan Lance Taylor <iant@golang.org>
Sun, 1 Mar 2020 14:57:24 +0000 (14:57 +0000)
commita908e09a34fff3c47efab69857d27bf6965b948a
treec165ab191543ca2a547191554460722674777334
parent1e9665da8fd8e2e095eb0e99a3b83118f600dc0b
runtime: deflake CGO traceback tests

The CGO traceback function is called whenever CGO code is executing and
a signal is received. This occurs much more frequently now SIGURG
is used for preemption.

Disable signal preemption to significantly increase the likelihood that
a signal results in a profile sample during the test.

Updates #37201

Change-Id: Icb1a33ab0754d1a74882a4ee265b4026abe30bdc
Reviewed-on: https://go-review.googlesource.com/c/go/+/219417
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/crash_cgo_test.go