cmd/stringer: fix ignored error in TestEndToEnd.

Change-Id: Ia139e9da37aecddebe8895c0d3427d7e97d408f8
Reviewed-on: https://go-review.googlesource.com/2931
Reviewed-by: David Symonds <dsymonds@golang.org>
This commit is contained in:
Nigel Tao 2015-01-16 10:06:00 +11:00
parent 771af7e25c
commit 045f02ba9d
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ import (
func TestEndToEnd(t *testing.T) {
dir, err := ioutil.TempDir("", "stringer")
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(dir)
// Create stringer in temporary directory.
stringer := filepath.Join(dir, "stringer.exe")