From: Tobias Klauser Date: Tue, 27 Sep 2022 14:14:48 +0000 (+0200) Subject: cmd/internal/pkgpath: use MustHaveExec in TestToSymbolFunc X-Git-Tag: go1.20rc1~900 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f15b81a80fc7250b436e5866d0a73c60f7b47712;p=gostls13.git 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 Auto-Submit: Tobias Klauser Reviewed-by: Bryan Mills Reviewed-by: Dmitri Shuralyov Run-TryBot: Tobias Klauser --- 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