]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: add test skips for ios
authorBryan C. Mills <bcmills@google.com>
Mon, 1 May 2023 21:05:05 +0000 (17:05 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 3 May 2023 14:35:42 +0000 (14:35 +0000)
For #59912.
For #59913.
Updates #49182.

Change-Id: I3fcdfaca3a4f7120404e7a36b4fb5f0e57dd8114
Reviewed-on: https://go-review.googlesource.com/c/go/+/491095
TryBot-Bypass: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/crash_cgo_test.go

index 258c0ffc17dac52278921ae3ecff685e0190d050..f771493b1a81ff38c5d49ff4a90390780695a13d 100644 (file)
@@ -112,6 +112,9 @@ func TestCgoExternalThreadSignal(t *testing.T) {
 
        got := runTestProg(t, "testprogcgo", "CgoExternalThreadSignal")
        if want := "OK\n"; got != want {
+               if runtime.GOOS == "ios" && strings.Contains(got, "C signal did not crash as expected") {
+                       testenv.SkipFlaky(t, 59913)
+               }
                t.Fatalf("expected %q, but got:\n%s", want, got)
        }
 }
@@ -528,6 +531,9 @@ func TestCgoTracebackSigpanic(t *testing.T) {
                // than injecting a sigpanic.
                t.Skip("no sigpanic in C on windows")
        }
+       if runtime.GOOS == "ios" {
+               testenv.SkipFlaky(t, 59912)
+       }
        t.Parallel()
        got := runTestProg(t, "testprogcgo", "TracebackSigpanic")
        t.Log(got)
@@ -650,7 +656,7 @@ func TestSegv(t *testing.T) {
 
                        // No runtime errors like "runtime: unknown pc".
                        switch runtime.GOOS {
-                       case "darwin", "illumos", "solaris":
+                       case "darwin", "ios", "illumos", "solaris":
                                // Runtime sometimes throws when generating the traceback.
                                testenv.SkipFlaky(t, 49182)
                        case "linux":