1
0
mirror of https://github.com/golang/go synced 2024-11-16 20:24:54 -07:00

runtime: skip TestSegv/SegvInCgo earlier on ios

It appears to sometimes hang instead of crashing,
which can cause subsequent tests to time out.

For #59947.

Change-Id: Id4ac3c0cd5f7f345334d3e0ed3f48e40b9ff191c
Reviewed-on: https://go-review.googlesource.com/c/go/+/492075
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
This commit is contained in:
Bryan C. Mills 2023-05-03 11:22:53 -04:00 committed by Bryan Mills
parent ca49b8d7af
commit dcd1c31032

View File

@ -643,6 +643,10 @@ func TestSegv(t *testing.T) {
} }
t.Run(test, func(t *testing.T) { t.Run(test, func(t *testing.T) {
if test == "SegvInCgo" && runtime.GOOS == "ios" {
testenv.SkipFlaky(t, 59947) // Don't even try, in case it times out.
}
t.Parallel() t.Parallel()
got := runTestProg(t, "testprogcgo", test) got := runTestProg(t, "testprogcgo", test)
t.Log(got) t.Log(got)