]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: skip TestNoteReading2K on Windows
authorRuss Cox <rsc@golang.org>
Thu, 19 Nov 2015 21:20:41 +0000 (16:20 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 19 Nov 2015 21:22:48 +0000 (21:22 +0000)
It's intended primarily as a torture test for OS X.
Apparently Windows can't take it.

Updates fix for #12327.

Change-Id: If2af249ea8e2f55bff8f232dce06172e6fef9f49
Reviewed-on: https://go-review.googlesource.com/17073
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/note_test.go

index 2771de3ed0a295f20410894f6d48939ffb5e5a0c..bfaa75f6c30cb2e77130114a3fd543c3c253bce0 100644 (file)
@@ -15,6 +15,9 @@ func TestNoteReading(t *testing.T) {
 }
 
 func TestNoteReading2K(t *testing.T) {
+       if runtime.GOOS == "windows" {
+               t.Skipf("2kB is not enough on %s", runtime.GOOS)
+       }
        // Set BuildIDReadSize to 2kB to exercise Mach-O parsing more strictly.
        defer func(old int) {
                main.BuildIDReadSize = old