Commit 379f5fc7 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

go/build: fix TestBogusDirectory format and maybe Windows failure

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7183046
parent 86a8d59a
......@@ -94,9 +94,9 @@ func TestLocalDirectory(t *testing.T) {
func TestBogusDirectory(t *testing.T) {
const dir = "/foo/bar/baz/gopher"
_, err := ImportDir(dir, FindOnly)
want := fmt.Sprintf("%q is not a directory", dir)
want := fmt.Sprintf("%q is not a directory", filepath.FromSlash(dir))
if err == nil || err.Error() != want {
t.Error("got error %q, want %q", err, want)
t.Errorf("got error %q, want %q", err, want)
}
}
......
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