mirror of https://github.com/golang/go.git
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:
parent
a4451e1143
commit
98534812bd
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue