@@ -46,6 +46,8 @@ import (
46
46
//
47
47
// TODO: Reduce these to zero or as close as possible.
48
48
var knownFails = map [string ]failReason {
49
+ "fixedbugs/issue22083.go" : {category : brokenOnWindows , desc : "stack trace differs on Windows" },
50
+
49
51
"fixedbugs/bug114.go" : {desc : "fixedbugs/bug114.go:15:27: B32 (untyped int constant 4294967295) overflows int" },
50
52
"fixedbugs/bug242.go" : {desc : "bad map check 13 false false Error: fail" },
51
53
"fixedbugs/bug260.go" : {desc : "maybe unsupportedFeature, pointer arithm" },
@@ -169,6 +171,7 @@ const (
169
171
unsureIfGopherJSSupportsThisFeature
170
172
lowLevelRuntimeDifference // JavaScript runtime behaves differently from Go in ways that are difficult to work around.
171
173
notApplicable // Test that doesn't need to run under GopherJS; it doesn't apply to the Go language in a general way.
174
+ brokenOnWindows // Tests fail only on Windows
172
175
)
173
176
174
177
type failReason struct {
@@ -287,7 +290,12 @@ func main() {
287
290
status := "ok "
288
291
errStr := ""
289
292
// GOPHERJS.
290
- if _ , ok := knownFails [filepath .ToSlash (test .goFileName ())]; ok && test .err != nil {
293
+ knownFail , ok := knownFails [filepath .ToSlash (test .goFileName ())]
294
+ if ok && runtime .GOOS != "windows" && knownFail .category == brokenOnWindows {
295
+ // Only disable brokenOnWindows tests if we're running on Windows
296
+ ok = false
297
+ }
298
+ if ok && test .err != nil {
291
299
errStr = test .err .Error ()
292
300
test .err = nil
293
301
status = "knfl" // knfl means known failure. Expect test to fail.
0 commit comments