]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: disable gdb test when a GOROOT_FINAL move is pending
authorRuss Cox <rsc@golang.org>
Thu, 17 Dec 2015 15:45:50 +0000 (10:45 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 17 Dec 2015 17:56:15 +0000 (17:56 +0000)
Fixes #13577.

Change-Id: I0bb8157d6210b0c7c09380c2163b7d7349495732
Reviewed-on: https://go-review.googlesource.com/17970
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/runtime-gdb_test.go

index 3c045713afd1637b27a366c8e5de7e977ef46a18..2b7e1d38597355148d4ead471064321a7e228f60 100644 (file)
@@ -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)