Fix panic traceback cutting.
diff --git a/gocheck.go b/gocheck.go
index 7ddf507..cb61a9d 100644
--- a/gocheck.go
+++ b/gocheck.go
@@ -299,6 +299,7 @@
}
var valueGo = filepath.Join("reflect", "value.go")
+var asmGo = filepath.Join("runtime", "asm_")
func (c *C) logPanic(skip int, value interface{}) {
skip += 1 // Our own frame.
@@ -313,6 +314,9 @@
if name == "Value.call" && strings.HasSuffix(path, valueGo) {
break
}
+ if name == "call16" && strings.Contains(path, asmGo) {
+ break
+ }
c.logf("%s:%d\n in %s", nicePath(file), line, name)
} else {
break