aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2013-03-01 14:49:55 +1100
committerAlex Brainman <alex.brainman@gmail.com>2013-03-01 14:49:55 +1100
commit3889d8afe531ddabc1833e7ef60aba45d99d532e (patch)
tree226c316a36e9e97fa0abf26c226222f7f641ab75 /src/pkg/path
parente72d1a9575e7b70b611c1f92319cb5a84d9e9267 (diff)
downloadgo-3889d8afe531ddabc1833e7ef60aba45d99d532e.tar.xz
path/filepath: better error reporting during TestWinSplitListTestsAreValid
Fixes #4930. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7424043
Diffstat (limited to 'src/pkg/path')
-rw-r--r--src/pkg/path/filepath/path_windows_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/path/filepath/path_windows_test.go b/src/pkg/path/filepath/path_windows_test.go
index 8f8e82ae50..d8926adde5 100644
--- a/src/pkg/path/filepath/path_windows_test.go
+++ b/src/pkg/path/filepath/path_windows_test.go
@@ -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)