]> Cypherpunks repositories - gostls13.git/commitdiff
os: skip TestRemoveAllRace on Windows
authorRuss Cox <rsc@golang.org>
Fri, 19 Sep 2014 00:13:07 +0000 (20:13 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 19 Sep 2014 00:13:07 +0000 (20:13 -0400)
It's just fundamentally incompatible with
Windows' pickiness about removing things
that are in use.

TBR=brainman
CC=golang-codereviews
https://golang.org/cl/142270043

src/os/os_test.go

index 7a28497414138383e953a05149f0049b5a95e722..973cc3a7bffce4f118db9d17a8ada67446818852 100644 (file)
@@ -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")