1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:18:32 -06:00

go.tools/oracle: fix build on darwin

diff -u3: the 3 is redundant and an error on darwin; redundant and unnecessary on linux.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13231044
This commit is contained in:
Rob Pike 2013-08-29 14:31:39 +10:00
parent 7f887510d9
commit 1b67ef0078

View File

@ -210,7 +210,7 @@ func TestOracle(t *testing.T) {
} }
// Compare foo.got with foo.golden. // Compare foo.got with foo.golden.
cmd := exec.Command("/usr/bin/diff", "-u3", golden, got) // assumes POSIX cmd := exec.Command("/usr/bin/diff", "-u", golden, got) // assumes POSIX
buf := new(bytes.Buffer) buf := new(bytes.Buffer)
cmd.Stdout = buf cmd.Stdout = buf
if err := cmd.Run(); err != nil { if err := cmd.Run(); err != nil {