]> Cypherpunks repositories - gostls13.git/commit
test: chdir before running go tool, cleanup afterwards.
authorRahul Chaudhry <rahulchaudhry@chromium.org>
Tue, 3 Feb 2015 20:41:52 +0000 (12:41 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 6 Feb 2015 05:16:34 +0000 (05:16 +0000)
commitd81cc374bedd670d8866a5721fcf5e601c35f13a
tree5ec6d1d4e97ea553c1a395ca87fbf1d189f13ded
parentf5f00be2ece8425ad6e47e55fbaf296779b8e56b
test: chdir before running go tool, cleanup afterwards.

issue9355 generated a file a.[568] in test/ directory and left it there.
For tests like these, it is best to chdir to a test specific directory
before generating any temporary files, since the tests are running
in parallel and might otherwise race with each other for the same files.

Change-Id: I58d96256d4d8ee3fda70d81077f19006064a7425
Reviewed-on: https://go-review.googlesource.com/3813
Reviewed-by: Ian Lance Taylor <iant@golang.org>
test/fixedbugs/issue9355.go