1
0
mirror of https://github.com/golang/go synced 2024-11-18 08:54:45 -07:00

go.tools/.hgignore: don't ignore test-generated files, clean them up.

(Includes rollback of CL 83680043.)

LGTM=gri
R=gri
CC=golang-codereviews, rsc
https://golang.org/cl/86430045
This commit is contained in:
Alan Donovan 2014-04-10 13:17:20 -04:00
parent 3bca0c7d87
commit ccb0e9ab88
3 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,3 @@
# Add no patterns to .hgignore except for files generated by 'go build'/'go test'.
# Add no patterns to .hgignore except for files generated by the build.
syntax:glob
last-change
*.got

View File

@ -234,6 +234,7 @@ func TestOracle(t *testing.T) {
continue
}
defer gotfh.Close()
defer os.Remove(got)
// Run the oracle on each query, redirecting its output
// and error (if any) to the foo.got file.

View File

@ -119,6 +119,7 @@ func Test(t *testing.T) {
if err := eg.WriteAST(iprog.Fset, got, file); err != nil {
t.Error(err)
}
defer os.Remove(got)
// Compare foo.got with foo.golden.
var cmd *exec.Cmd