Skip to content

Commit e0c14b0

Browse files
committed
tests: Triage new Go repository tests added/modified in Go 1.8.
There were 3 failing tests. One was a modified old test that wasn't previously run due to a build constraint (that has been removed in 1.8). It fails due to a compiler bug, see #551 that tracks it. Two were new tests that use unsupported packages/funcs (such as "unsafe", runtime.FuncForPC, runtime.Callers) and failed as a result.
1 parent 2e1d328 commit e0c14b0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/run.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ var knownFails = map[string]failReason{
6868
"fixedbugs/issue7690.go": {desc: "Error: runtime error: slice bounds out of range"},
6969
"fixedbugs/issue8047.go": {desc: "null"},
7070
"fixedbugs/issue8047b.go": {desc: "Error: [object Object]"},
71+
"fixedbugs/issue8613.go": {desc: "Does not panic upon division by zero when assigned to _, see https://github.com/gopherjs/gopherjs/issues/551."},
7172

7273
// Failing due to use of os/exec.Command, which is unsupported. Now skipped via !nacl build tag.
7374
/*"fixedbugs/bug248.go": {desc: "os/exec.Command unsupported"},
@@ -81,16 +82,21 @@ var knownFails = map[string]failReason{
8182
"fixedbugs/issue14636.go": {desc: "os/exec.Command unsupported"},
8283

8384
// These are new tests in Go 1.7.
84-
"fixedbugs/issue14646.go": {category: unsureIfGopherJSSupportsThisFeature, desc: "it tests runtime.Caller behavior in a deferred func in SSA backend... does GopherJS even support runtime.Caller?"},
85+
"fixedbugs/issue14646.go": {category: unsureIfGopherJSSupportsThisFeature, desc: "tests runtime.Caller behavior in a deferred func in SSA backend... does GopherJS even support runtime.Caller?"},
8586
"fixedbugs/issue15039.go": {category: validButDealWithAfterGo17SinceNew, desc: "valid bug but deal with after Go 1.7 support is out? it's likely not a regression"},
8687
"fixedbugs/issue15281.go": {category: validButDealWithAfterGo17SinceNew, desc: "also looks valid but deal with after Go 1.7 support is out? it's likely not a regression"},
8788
"fixedbugs/issue15975.go": {category: validButDealWithAfterGo17SinceNew, desc: "also looks valid but deal with after Go 1.7 support is out?"},
89+
90+
// These are new tests in Go 1.8.
91+
"fixedbugs/issue15528.go": {category: usesUnsupportedPackage, desc: `imports "unsafe" package and gets: Error: reflect: call of reflect.Value.IsNil on unsafe.Pointer Value`}, // See https://github.com/golang/go/commit/dfc56a4cd313c9c5de37f4fadb14912286edc42f for relevant commit.
92+
"fixedbugs/issue17381.go": {category: unsureIfGopherJSSupportsThisFeature, desc: "tests runtime.{Callers,FuncForPC} behavior in a deferred func with garbage on stack... does GopherJS even support runtime.{Callers,FuncForPC}?"},
8893
}
8994

9095
type failCategory uint8
9196

9297
const (
93-
other failCategory = iota
98+
other failCategory = iota
99+
usesUnsupportedPackage // Test fails because it imports an unsupported package, e.g., "unsafe".
94100
compilerPanic
95101
unsureIfGopherJSSupportsThisFeature
96102
validButDealWithAfterGo17SinceNew // TODO: After Go 1.7 support is out, this category should be re-triaged and removed.

0 commit comments

Comments
 (0)