mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
go.tools/cmd/stringer: add .exe suffix to executable name in TestEndToEnd
Fixes windows build LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/140360043
This commit is contained in:
parent
96adaa5618
commit
d39af6c903
@ -24,7 +24,7 @@ func TestEndToEnd(t *testing.T) {
|
|||||||
dir, err := ioutil.TempDir("", "stringer")
|
dir, err := ioutil.TempDir("", "stringer")
|
||||||
defer os.RemoveAll(dir)
|
defer os.RemoveAll(dir)
|
||||||
// Create stringer in temporary directory.
|
// Create stringer in temporary directory.
|
||||||
stringer := filepath.Join(dir, "stringer")
|
stringer := filepath.Join(dir, "stringer.exe")
|
||||||
err = run("go", "build", "-o", stringer, "stringer.go")
|
err = run("go", "build", "-o", stringer, "stringer.go")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("building stringer: %s", err)
|
t.Fatalf("building stringer: %s", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user