Commit 1425412f authored by David Symonds's avatar David Symonds Committed by Brad Fitzpatrick

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/117335Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent aadaec50
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment