]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/pprof: disable flaky TestGoroutineSwitch on windows
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 15 Oct 2013 02:00:06 +0000 (13:00 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 15 Oct 2013 02:00:06 +0000 (13:00 +1100)
Update #6417

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/14604043

src/pkg/runtime/pprof/pprof_test.go

index d4f9f633bcc5ddaa2e50f8db64bbcde49c97aef6..f1fc5faec689d050fc7124a8f0621801f36af4f8 100644 (file)
@@ -184,6 +184,9 @@ func TestCPUProfileWithFork(t *testing.T) {
 // If it did, it would see inconsistent state and would either record an incorrect stack
 // or crash because the stack was malformed.
 func TestGoroutineSwitch(t *testing.T) {
+       if runtime.GOOS == "windows" {
+               t.Skip("flaky test; see http://golang.org/issue/6417")
+       }
        // How much to try. These defaults take about 1 seconds
        // on a 2012 MacBook Pro. The ones in short mode take
        // about 0.1 seconds.