summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-18 20:13:07 -0400
committerRuss Cox <rsc@golang.org>2014-09-18 20:13:07 -0400
commit61e83efb7136c87ff2515a16ece5758b040ae1f9 (patch)
tree4a86ed07ee07baeb86ddb8f63e07866ba99e5f43 /src/os
parente2b51c73025912a3cf13fb8ac1355c1190690ffb (diff)
downloadgo-61e83efb7136c87ff2515a16ece5758b040ae1f9.tar.gz
os: skip TestRemoveAllRace on Windows
It's just fundamentally incompatible with Windows' pickiness about removing things that are in use. TBR=brainman CC=golang-codereviews https://codereview.appspot.com/142270043
Diffstat (limited to 'src/os')
-rw-r--r--src/os/os_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/os/os_test.go b/src/os/os_test.go
index 7a2849741..973cc3a7b 100644
--- a/src/os/os_test.go
+++ b/src/os/os_test.go
@@ -1422,6 +1422,14 @@ func mkdirTree(t *testing.T, root string, level, max int) {
// Test that simultaneous RemoveAll do not report an error.
// As long as it gets removed, we should be happy.
func TestRemoveAllRace(t *testing.T) {
+ if runtime.GOOS == "windows" {
+ // Windows has very strict rules about things like
+ // removing directories while someone else has
+ // them open. The racing doesn't work out nicely
+ // like it does on Unix.
+ t.Skip("skipping on windows")
+ }
+
n := runtime.GOMAXPROCS(16)
defer runtime.GOMAXPROCS(n)
root, err := ioutil.TempDir("", "issue")