1
0
mirror of https://github.com/golang/go synced 2024-11-23 07:50:05 -07:00

path/filepath: better error reporting during TestWinSplitListTestsAreValid

Fixes #4930.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/7424043
This commit is contained in:
Alex Brainman 2013-03-01 14:49:55 +11:00
parent e72d1a9575
commit 3889d8afe5

View File

@ -70,10 +70,10 @@ func testWinSplitListTestIsValid(t *testing.T, ti int, tt SplitListTest,
Env: []string{`Path=` + tt.list}, Env: []string{`Path=` + tt.list},
Dir: tmp, Dir: tmp,
} }
out, err := cmd.Output() out, err := cmd.CombinedOutput()
switch { switch {
case err != nil: case err != nil:
t.Errorf("%d,%d: execution error %v", ti, i, err) t.Errorf("%d,%d: execution error %v\n%q", ti, i, err, out)
return return
case !reflect.DeepEqual(out, exp): case !reflect.DeepEqual(out, exp):
t.Errorf("%d,%d: expected %#q, got %#q", ti, i, exp, out) t.Errorf("%d,%d: expected %#q, got %#q", ti, i, exp, out)