mirror of
https://github.com/golang/go
synced 2024-11-18 20:14:43 -07: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:
parent
7f887510d9
commit
1b67ef0078
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user