diff options
author | Emmanuel T Odeke <emmanuel@orijtech.com> | 2018-11-13 16:13:42 -0700 |
---|---|---|
committer | Emmanuel Odeke <emm.odeke@gmail.com> | 2018-11-14 00:22:40 +0000 |
commit | 6d620fc42ec2ae61cfedcd37d24afd8cb7654164 (patch) | |
tree | a35a61315df7dab3c3c5445f2f004b79123a0afa /test/run.go | |
parent | 69397422c0ac74f9f9ec8e2b3e6d0b0b7ab1b697 (diff) | |
download | go-6d620fc42ec2ae61cfedcd37d24afd8cb7654164.tar.gz go-6d620fc42ec2ae61cfedcd37d24afd8cb7654164.zip |
test: move empty header file in builddir, buildrundir to temp directory
Move the empty header file created by "builddir", "buildrundir"
directives to t.tempDir. The file was accidentally placed in the
same directory as the source code and this was a vestige of CL 146999.
Fixes #28781
Change-Id: I3d2ada5f9e8bf4ce4f015b9bd379b311592fe3ce
Reviewed-on: https://go-review.googlesource.com/c/149458
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'test/run.go')
-rw-r--r-- | test/run.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/run.go b/test/run.go index a01fd6a957..3a9e267940 100644 --- a/test/run.go +++ b/test/run.go @@ -808,7 +808,8 @@ func (t *test) run() { } if len(asms) > 0 { - if err := ioutil.WriteFile(filepath.Join(longdir, "go_asm.h"), nil, 0666); err != nil { + emptyHdrFile := filepath.Join(t.tempDir, "go_asm.h") + if err := ioutil.WriteFile(emptyHdrFile, nil, 0666); err != nil { t.err = fmt.Errorf("write empty go_asm.h: %s", err) return } |