Commit eaf8295f authored by Robert Griesemer's avatar Robert Griesemer

fix windows build: always use / in filenames of go/doc test output

R=r
CC=golang-dev
https://golang.org/cl/5554055
parent 0203fbee
......@@ -77,6 +77,11 @@ func Test(t *testing.T) {
importpath := dataDir + "/" + pkg.Name
doc := New(pkg, importpath, 0)
// golden files always use / in filenames - canonicalize them
for i, filename := range doc.Filenames {
doc.Filenames[i] = filepath.ToSlash(filename)
}
// print documentation
var buf bytes.Buffer
if err := templateTxt.Execute(&buf, bundle{doc, fset}); err != nil {
......
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