@@ -25,6 +25,7 @@ import (
2525 "path/filepath"
2626 "reflect"
2727 "regexp"
28+ "runtime"
2829 "sort"
2930 "strings"
3031 "testing"
@@ -90,7 +91,7 @@ type testMatcher struct {
9091 configpat []testConfig
9192 failpat []testFailure
9293 skiploadpat []* regexp.Regexp
93- skipshortpat []* regexp.Regexp
94+ slowpat []* regexp.Regexp
9495 whitelistpat * regexp.Regexp
9596}
9697
@@ -105,8 +106,8 @@ type testFailure struct {
105106}
106107
107108// skipShortMode skips tests matching when the -short flag is used.
108- func (tm * testMatcher ) skipShortMode (pattern string ) {
109- tm .skipshortpat = append (tm .skipshortpat , regexp .MustCompile (pattern ))
109+ func (tm * testMatcher ) slow (pattern string ) {
110+ tm .slowpat = append (tm .slowpat , regexp .MustCompile (pattern ))
110111}
111112
112113// skipLoad skips JSON loading of tests matching the pattern.
@@ -133,11 +134,15 @@ func (tm *testMatcher) config(pattern string, cfg params.ChainConfig) {
133134
134135// findSkip matches name against test skip patterns.
135136func (tm * testMatcher ) findSkip (name string ) (reason string , skipload bool ) {
136- if testing .Short () {
137- for _ , re := range tm .skipshortpat {
138- if re .MatchString (name ) {
137+ isWin32 := runtime .GOARCH == "386" && runtime .GOOS == "windows"
138+ for _ , re := range tm .slowpat {
139+ if re .MatchString (name ) {
140+ if testing .Short () {
139141 return "skipped in -short mode" , false
140142 }
143+ if isWin32 {
144+ return "skipped on 32bit windows" , false
145+ }
141146 }
142147 }
143148 for _ , re := range tm .skiploadpat {
0 commit comments