mirror of https://github.com/golang/go.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 <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>
This commit is contained in:
parent
17078f5860
commit
f15b81a80f
|
|
@ -5,6 +5,7 @@
|
||||||
package pkgpath
|
package pkgpath
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"internal/testenv"
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
@ -34,6 +35,8 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestToSymbolFunc(t *testing.T) {
|
func TestToSymbolFunc(t *testing.T) {
|
||||||
|
testenv.MustHaveExec(t)
|
||||||
|
|
||||||
const input = "pä世🜃"
|
const input = "pä世🜃"
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
env string
|
env string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue