diff --git a/src/cmd/cover/cover_test.go b/src/cmd/cover/cover_test.go index 8462b2d015e..ec80f94e59d 100644 --- a/src/cmd/cover/cover_test.go +++ b/src/cmd/cover/cover_test.go @@ -310,8 +310,12 @@ func TestCoverHTML(t *testing.T) { if err := ioutil.WriteFile(htmlHTML, out.Bytes(), 0644); err != nil { t.Fatal(err) } + diff := "diff" + if runtime.GOOS == "plan9" { + diff = "/bin/ape/diff" + } // diff -uw testdata/html/html.html testdata/html/html.golden - cmd = exec.Command("diff", "-u", "-w", htmlHTML, htmlGolden) + cmd = exec.Command(diff, "-u", "-w", htmlHTML, htmlGolden) run(cmd, t) }