aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-12-17 10:45:50 -0500
committerRuss Cox <rsc@golang.org>2015-12-17 17:56:15 +0000
commitd270a6794b662db0735b34d244fffb63430aa471 (patch)
tree9f16896f8f8dbdb715aba91f181ef2fdae7c6c64
parentcfc9fde54d2d27486edede6dccf107889f0d2cc6 (diff)
downloadgo-d270a6794b662db0735b34d244fffb63430aa471.tar.gz
go-d270a6794b662db0735b34d244fffb63430aa471.zip
runtime: disable gdb test when a GOROOT_FINAL move is pending
Fixes #13577. Change-Id: I0bb8157d6210b0c7c09380c2163b7d7349495732 Reviewed-on: https://go-review.googlesource.com/17970 Reviewed-by: Ian Lance Taylor <iant@golang.org>
-rw-r--r--src/runtime/runtime-gdb_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go
index 3c045713af..2b7e1d3859 100644
--- a/src/runtime/runtime-gdb_test.go
+++ b/src/runtime/runtime-gdb_test.go
@@ -60,6 +60,9 @@ func TestGdbPython(t *testing.T) {
if runtime.GOOS == "darwin" {
t.Skip("gdb does not work on darwin")
}
+ if final := os.Getenv("GOROOT_FINAL"); final != "" && runtime.GOROOT() != final {
+ t.Skip("gdb test can fail with GOROOT_FINAL pending")
+ }
checkGdbPython(t)