1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:54:44 -07:00
go/internal/lsp/diff
Richard Miller 19e4049dcd internal/testenv: check that external 'diff' tool is the GNU version
TestVerifyUnified in internal/lsp/diff/difftest requires specific
behaviour of the 'diff' command which is known to be satisfied by
GNU diff. The plan9 'diff' command has no '-u' option, and the
illumos 'diff -u' produces output in a different format. Checking
specifically for the GNU version in the HasTool function ensures
the expected behaviour, and otherwise causes the test to be skipped.

Updates golang/go#38772

Change-Id: I5493fa8cfc48a112dc0b7356618c62d3ccb0366f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/232479
Reviewed-by: Ian Cottrell <iancottrell@google.com>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-05-08 20:46:49 +00:00
..
difftest internal/testenv: check that external 'diff' tool is the GNU version 2020-05-08 20:46:49 +00:00
myers internal/lsp: cleanup the diff/myers package 2019-10-04 03:45:34 +00:00
diff_test.go internal/lsp: expand edits to whole lines in ToUnified 2019-10-10 20:14:46 +00:00
diff.go internal/lsp: fix unified diffs of edits at the end of a file 2019-10-11 16:38:14 +00:00
unified.go internal/lsp: expand edits to whole lines in ToUnified 2019-10-10 20:14:46 +00:00