Skip to content

Commit 6d620fc

Browse files
committed
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent 6939742 commit 6d620fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/run.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,8 @@ func (t *test) run() {
808808

809809
}
810810
if len(asms) > 0 {
811-
if err := ioutil.WriteFile(filepath.Join(longdir, "go_asm.h"), nil, 0666); err != nil {
811+
emptyHdrFile := filepath.Join(t.tempDir, "go_asm.h")
812+
if err := ioutil.WriteFile(emptyHdrFile, nil, 0666); err != nil {
812813
t.err = fmt.Errorf("write empty go_asm.h: %s", err)
813814
return
814815
}

0 commit comments

Comments
 (0)