mirror of
https://github.com/golang/go
synced 2024-11-22 03:34:40 -07: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:
parent
86a8d59a01
commit
379f5fc7f1
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user