Commit 3889d8af authored by Alex Brainman's avatar Alex Brainman

path/filepath: better error reporting during TestWinSplitListTestsAreValid

Fixes #4930.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/7424043
parent e72d1a95
......@@ -70,10 +70,10 @@ func testWinSplitListTestIsValid(t *testing.T, ti int, tt SplitListTest,
Env: []string{`Path=` + tt.list},
Dir: tmp,
}
out, err := cmd.Output()
out, err := cmd.CombinedOutput()
switch {
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
case !reflect.DeepEqual(out, exp):
t.Errorf("%d,%d: expected %#q, got %#q", ti, i, exp, out)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment