]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: skip TestStackSwitchCallback on ios
authorMichael Pratt <mpratt@google.com>
Mon, 18 Sep 2023 20:12:36 +0000 (16:12 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 18 Sep 2023 23:58:43 +0000 (23:58 +0000)
getcontext is unsupported on ios, returning ENOTSUP.

Fixes #62700.

Change-Id: Icc6c45fbd574886766d5289e2fbdbd62981d77eb
Reviewed-on: https://go-review.googlesource.com/c/go/+/529216
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>

src/runtime/crash_cgo_test.go

index 4a5d9c35196270180378c69d48ce506146570ee5..20e3b75d79eaf208e61e7db36074ef9c43503c15 100644 (file)
@@ -873,7 +873,7 @@ func TestEnsureBindM(t *testing.T) {
 func TestStackSwitchCallback(t *testing.T) {
        t.Parallel()
        switch runtime.GOOS {
-       case "windows", "plan9", "android", "openbsd": // no getcontext
+       case "windows", "plan9", "android", "ios", "openbsd": // no getcontext
                t.Skipf("skipping test on %s", runtime.GOOS)
        }
        got := runTestProg(t, "testprogcgo", "StackSwitchCallback")