diff options
Diffstat (limited to 'libgo/go/cmd/go/internal/renameio/umask_test.go')
-rw-r--r-- | libgo/go/cmd/go/internal/renameio/umask_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/cmd/go/internal/renameio/umask_test.go b/libgo/go/cmd/go/internal/renameio/umask_test.go index 1a471c9e4e6..d75d67c9a93 100644 --- a/libgo/go/cmd/go/internal/renameio/umask_test.go +++ b/libgo/go/cmd/go/internal/renameio/umask_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//+build !nacl,!plan9,!windows,!js +// +build !plan9,!windows,!js package renameio @@ -19,6 +19,7 @@ func TestWriteFileModeAppliesUmask(t *testing.T) { if err != nil { t.Fatalf("Failed to create temporary directory: %v", err) } + defer os.RemoveAll(dir) const mode = 0644 const umask = 0007 @@ -29,7 +30,6 @@ func TestWriteFileModeAppliesUmask(t *testing.T) { if err != nil { t.Fatalf("Failed to write file: %v", err) } - defer os.RemoveAll(dir) fi, err := os.Stat(file) if err != nil { |