1
0
mirror of https://github.com/golang/go synced 2024-11-11 23:10:23 -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:
David Symonds 2018-06-08 10:33:54 +10:00 committed by Brad Fitzpatrick
parent aadaec5045
commit 1425412f38

View File

@ -310,8 +310,8 @@ func TestCoverHTML(t *testing.T) {
if err := ioutil.WriteFile(htmlHTML, out.Bytes(), 0644); err != nil {
t.Fatal(err)
}
// diff -ud testdata/html/html.html testdata/html/html.golden
cmd = exec.Command("diff", "-udw", htmlHTML, htmlGolden)
// diff -uw testdata/html/html.html testdata/html/html.golden
cmd = exec.Command("diff", "-u", "-w", htmlHTML, htmlGolden)
run(cmd, t)
}