diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2022-09-27 16:14:48 +0200 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-09-27 18:26:59 +0000 |
| commit | f15b81a80fc7250b436e5866d0a73c60f7b47712 (patch) | |
| tree | bc28e1dc064a983bd3de560ebca5775f2e15084c /src/cmd/internal/pkgpath/pkgpath_test.go | |
| parent | 17078f5860699e0d1e1f6f3ca328f92621ac49d0 (diff) | |
| download | go-f15b81a80fc7250b436e5866d0a73c60f7b47712.tar.xz | |
cmd/internal/pkgpath: use MustHaveExec in TestToSymbolFunc
ToSymbolFunc executes a command using exec.Command.
Change-Id: Ic6c274bdc23050d021ec98ba67748338ac34f12c
Reviewed-on: https://go-review.googlesource.com/c/go/+/435236
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Diffstat (limited to 'src/cmd/internal/pkgpath/pkgpath_test.go')
| -rw-r--r-- | src/cmd/internal/pkgpath/pkgpath_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/internal/pkgpath/pkgpath_test.go b/src/cmd/internal/pkgpath/pkgpath_test.go index 232e803a60..ae4fac71e4 100644 --- a/src/cmd/internal/pkgpath/pkgpath_test.go +++ b/src/cmd/internal/pkgpath/pkgpath_test.go @@ -5,6 +5,7 @@ package pkgpath import ( + "internal/testenv" "os" "testing" ) @@ -34,6 +35,8 @@ func init() { } func TestToSymbolFunc(t *testing.T) { + testenv.MustHaveExec(t) + const input = "pä世🜃" tests := []struct { env string |
