]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/pkgpath: use MustHaveExec in TestToSymbolFunc
authorTobias Klauser <tklauser@distanz.ch>
Tue, 27 Sep 2022 14:14:48 +0000 (16:14 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 27 Sep 2022 18:26:59 +0000 (18:26 +0000)
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>

src/cmd/internal/pkgpath/pkgpath_test.go

index 232e803a6014df6270b24a3b782d0c60ff8209e2..ae4fac71e4542941043886fad721df1533a48d61 100644 (file)
@@ -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