Skip to content

Commit 9853481

Browse files
committed
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 <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]>
1 parent a4451e1 commit 9853481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/compile/internal/logopt/logopt_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func TestLogOpt(t *testing.T) {
5151

5252
dir, err := ioutil.TempDir("", "TestLogOpt")
5353
if err != nil {
54-
t.Fatal(err)
54+
t.Skipf("Could not create work directory, assuming not allowed on this platform. Error was '%v'", err)
5555
}
5656
defer os.RemoveAll(dir)
5757

0 commit comments

Comments
 (0)