From: Robert Griesemer Date: Wed, 18 Jan 2012 22:59:58 +0000 (-0800) Subject: fix windows build: always use / in filenames of go/doc test output X-Git-Tag: weekly.2012-01-20~49 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eaf8295f3d587fcd615dbaa310954e9e6e5cdad5;p=gostls13.git fix windows build: always use / in filenames of go/doc test output R=r CC=golang-dev https://golang.org/cl/5554055 --- diff --git a/src/pkg/go/doc/doc_test.go b/src/pkg/go/doc/doc_test.go index cb9fffc896..0a4830148a 100644 --- a/src/pkg/go/doc/doc_test.go +++ b/src/pkg/go/doc/doc_test.go @@ -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 {