mirror of
https://github.com/golang/go
synced 2024-11-13 15:20:22 -07:00
cmd/cover: fix test on Solaris
Solaris diff doesn't know about -d (a.k.a. --minimal). Change-Id: I86146b4b93e3d0bdea52a0fde59afca20b5bab51 Reviewed-on: https://go-review.googlesource.com/117335 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
aadaec5045
commit
1425412f38
@ -310,8 +310,8 @@ func TestCoverHTML(t *testing.T) {
|
|||||||
if err := ioutil.WriteFile(htmlHTML, out.Bytes(), 0644); err != nil {
|
if err := ioutil.WriteFile(htmlHTML, out.Bytes(), 0644); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
// diff -ud testdata/html/html.html testdata/html/html.golden
|
// diff -uw testdata/html/html.html testdata/html/html.golden
|
||||||
cmd = exec.Command("diff", "-udw", htmlHTML, htmlGolden)
|
cmd = exec.Command("diff", "-u", "-w", htmlHTML, htmlGolden)
|
||||||
run(cmd, t)
|
run(cmd, t)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user