1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:28:32 -06:00

go/build: fix TestBogusDirectory format and maybe Windows failure

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7183046
This commit is contained in:
Brad Fitzpatrick 2013-01-22 17:50:12 -08:00
parent 86a8d59a01
commit 379f5fc7f1

View File

@ -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)
}
}