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 | |
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')
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 7e1a5f7..0a70b3a 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -43e458ab704e04cdf347f3e74e0b0eff3de00a3d +4fbd06dc7b1b8fb665293399a2b6d5326435512f The first line of this file holds the git revision number of the last merge done from the gofrontend repository. |