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>
This commit is contained in:
David Chase 2020-04-06 11:12:26 -04:00
parent a4451e1143
commit 98534812bd
1 changed files with 1 additions and 1 deletions

View File

@ -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)