Commit b5c71830 authored by Ian Lance Taylor's avatar Ian Lance Taylor

runtime: skip GDB tests on NetBSD

TestGdbAutotmpTypes times out for unknown reasons on NetBSd. Skip the
gdb tests on NetBSD for now.

Updates #22893

Change-Id: Ibb05b7260eabb74d805d374b25a43770939fa5f2
Reviewed-on: https://go-review.googlesource.com/80136
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 18ae4c83
...@@ -22,12 +22,16 @@ import ( ...@@ -22,12 +22,16 @@ import (
func checkGdbEnvironment(t *testing.T) { func checkGdbEnvironment(t *testing.T) {
testenv.MustHaveGoBuild(t) testenv.MustHaveGoBuild(t)
if runtime.GOOS == "darwin" { switch runtime.GOOS {
case "darwin":
t.Skip("gdb does not work on darwin") t.Skip("gdb does not work on darwin")
} case "netbsd":
if runtime.GOOS == "linux" && runtime.GOARCH == "ppc64" { t.Skip("test times out on NetBSD for unknown reasons; issue 22893")
case "linux":
if runtime.GOARCH == "ppc64" {
t.Skip("skipping gdb tests on linux/ppc64; see golang.org/issue/17366") t.Skip("skipping gdb tests on linux/ppc64; see golang.org/issue/17366")
} }
}
if final := os.Getenv("GOROOT_FINAL"); final != "" && runtime.GOROOT() != final { if final := os.Getenv("GOROOT_FINAL"); final != "" && runtime.GOROOT() != final {
t.Skip("gdb test can fail with GOROOT_FINAL pending") t.Skip("gdb test can fail with GOROOT_FINAL pending")
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment