diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-02-22 00:41:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-02-22 00:41:25 +0000 |
commit | 8aef6e02ad1b49cd60e78caf9909e6c8aa517649 (patch) | |
tree | cc75d762d2bfb435632bdb41f39e6c5f8576cd26 /gcc/cp/lambda.c | |
parent | 2496137abd8e367ffd5fdffde6dafbf345cd3fee (diff) | |
download | gcc-8aef6e02ad1b49cd60e78caf9909e6c8aa517649.zip gcc-8aef6e02ad1b49cd60e78caf9909e6c8aa517649.tar.gz gcc-8aef6e02ad1b49cd60e78caf9909e6c8aa517649.tar.bz2 |
cmd/go: remove work directory on usage error
Backport https://golang.org/cl/163237 from the master library:
Ensure that cmd/go consistently calls base.Exit rather than os.Exit,
so that we don't incorrectly leave the work directory around on exit.
Test this by modifying the testsuite to run all the tests with TMPDIR
set to a temporary directory, and then check that no files are left
behind in that temporary directory. Adjust a couple of tests to make
this approach work.
Updates https://gcc.gnu.org/PR89406
Reviewed-on: https://go-review.googlesource.com/c/163198
From-SVN: r269086
Diffstat (limited to 'gcc/cp/lambda.c')
0 files changed, 0 insertions, 0 deletions