]> Cypherpunks repositories - gostls13.git/commitdiff
debug/gosym: avoid test failure on Windows
authorRuss Cox <rsc@golang.org>
Thu, 18 Jul 2013 15:01:58 +0000 (11:01 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 18 Jul 2013 15:01:58 +0000 (11:01 -0400)
Would fix build if build hadn't already been broken with something else.

TBR=golang-dev
CC=golang-dev
https://golang.org/cl/11525043

src/pkg/debug/gosym/pclntab_test.go

index 5616cdbd5691a9c3f2d77fc699e9c22605611613..6ec2b63847dff74ea0f21921c11e099677adc110 100644 (file)
@@ -30,6 +30,10 @@ func dotest(self bool) bool {
        if self && runtime.GOOS != "linux" {
                return false
        }
+       // Command below expects "sh", so Unix.
+       if runtime.GOOS == "windows" || runtime.GOOS == "plan9" {
+               return false
+       }
        if pclinetestBinary != "" {
                return true
        }