aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/crash_unix_test.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2020-03-11 09:39:54 -0400
committerBryan C. Mills <bcmills@google.com>2020-03-11 15:05:56 +0000
commit035c018d40c0a7895880e235048d425ea3e3fa6b (patch)
tree8a855ad5656b918222946cf4b50b073b7ee36f98 /src/runtime/crash_unix_test.go
parentc6fef1fb52e9660ce2226a19508fdaacf71e46a9 (diff)
downloadgo-035c018d40c0a7895880e235048d425ea3e3fa6b.tar.gz
go-035c018d40c0a7895880e235048d425ea3e3fa6b.zip
runtime: skip TestSignalIgnoreSIGTRAP on known-flaky OpenBSD builders
This test is flaky, and the cause is suspected to be an OpenBSD kernel bug. Since there is no obvious workaround on the Go side, skip the test on builders whose versions are known to be affected. Fixes #17496 Change-Id: Ifa70061eb429e1d949f0fa8a9e25d177afc5c488 Reviewed-on: https://go-review.googlesource.com/c/go/+/222856 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alexander Rakoczy <alex@golang.org>
Diffstat (limited to 'src/runtime/crash_unix_test.go')
-rw-r--r--src/runtime/crash_unix_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime/crash_unix_test.go b/src/runtime/crash_unix_test.go
index 1420b3206a..8ef52aba48 100644
--- a/src/runtime/crash_unix_test.go
+++ b/src/runtime/crash_unix_test.go
@@ -15,6 +15,7 @@ import (
"os/exec"
"path/filepath"
"runtime"
+ "strings"
"sync"
"syscall"
"testing"
@@ -288,6 +289,12 @@ func TestSignalExitStatus(t *testing.T) {
}
func TestSignalIgnoreSIGTRAP(t *testing.T) {
+ if runtime.GOOS == "openbsd" {
+ if bn := testenv.Builder(); strings.HasSuffix(bn, "-62") || strings.HasSuffix(bn, "-64") {
+ testenv.SkipFlaky(t, 17496)
+ }
+ }
+
output := runTestProg(t, "testprognet", "SignalIgnoreSIGTRAP")
want := "OK\n"
if output != want {