]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/fsys: skip symlink test on Plan 9
authorFazlul Shahriar <fshahriar@gmail.com>
Tue, 13 Oct 2020 15:36:11 +0000 (11:36 -0400)
committerBryan C. Mills <bcmills@google.com>
Tue, 13 Oct 2020 16:27:46 +0000 (16:27 +0000)
Fixes #41950
Fixes #41954

Change-Id: I95d97f076fa928f3638309b78748d7ccc7277b14
Reviewed-on: https://go-review.googlesource.com/c/go/+/261897
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>

src/cmd/go/internal/fsys/fsys_test.go

index 0c3069a6a2277b45987bb45a5b06d6fc8faf9870..6cf59fba47d53669df29eeb21e0fb29db3cf46bd 100644 (file)
@@ -5,6 +5,7 @@ import (
        "encoding/json"
        "errors"
        "fmt"
+       "internal/testenv"
        "io/ioutil"
        "os"
        "path/filepath"
@@ -654,6 +655,8 @@ func TestWalk_Error(t *testing.T) {
 }
 
 func TestWalk_Symlink(t *testing.T) {
+       testenv.MustHaveSymlink(t)
+
        initOverlay(t, `{
        "Replace": {"overlay_symlink": "symlink"}
 }