aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Chase <drchase@google.com>2020-04-06 11:12:26 -0400
committerDavid Chase <drchase@google.com>2020-04-06 15:22:07 +0000
commit98534812bdcdd22b13469ea587e310187876b7d2 (patch)
tree30392f6c50afa3631538ea42c05fffd208246ed1
parenta4451e11437c2375c7451d90aac5419903629b16 (diff)
downloadgo-98534812bdcdd22b13469ea587e310187876b7d2.tar.gz
go-98534812bdcdd22b13469ea587e310187876b7d2.zip
cmd/compile: make logopt test skip if cannot create scratch directory
Fixes #38251. Change-Id: Ic635843fb503484a1c9a230b0cca571393d3da5a Reviewed-on: https://go-review.googlesource.com/c/go/+/227339 Run-TryBot: David Chase <drchase@google.com> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
-rw-r--r--src/cmd/compile/internal/logopt/logopt_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/logopt/logopt_test.go b/src/cmd/compile/internal/logopt/logopt_test.go
index 0b974fc31e..040d8cee0b 100644
--- a/src/cmd/compile/internal/logopt/logopt_test.go
+++ b/src/cmd/compile/internal/logopt/logopt_test.go
@@ -51,7 +51,7 @@ func TestLogOpt(t *testing.T) {
dir, err := ioutil.TempDir("", "TestLogOpt")
if err != nil {
- t.Fatal(err)
+ t.Skipf("Could not create work directory, assuming not allowed on this platform. Error was '%v'", err)
}
defer os.RemoveAll(dir)