mirror of https://github.com/golang/go.git
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:
parent
86a8d59a01
commit
379f5fc7f1
|
|
@ -94,9 +94,9 @@ func TestLocalDirectory(t *testing.T) {
|
||||||
func TestBogusDirectory(t *testing.T) {
|
func TestBogusDirectory(t *testing.T) {
|
||||||
const dir = "/foo/bar/baz/gopher"
|
const dir = "/foo/bar/baz/gopher"
|
||||||
_, err := ImportDir(dir, FindOnly)
|
_, 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 {
|
if err == nil || err.Error() != want {
|
||||||
t.Error("got error %q, want %q", err, want)
|
t.Errorf("got error %q, want %q", err, want)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue