提交 e1f2626b 编写于 作者: A aarzilli 提交者: Derek Parker

proc_test: instrument TestFrameEvaluation

I've seen TestFrameEvaluation fail in CI in the past. It's been a while
since the last time and I couldn't reproduce it locally at all. I'd
like to have some instrumentation in case it happens again.
上级 4f70ff0a
......@@ -1226,6 +1226,8 @@ func TestFrameEvaluation(t *testing.T) {
assertNoError(err, t, "setFunctionBreakpoint")
assertNoError(proc.Continue(p), t, "Continue()")
t.Logf("stopped on thread %d, goroutine: %#v", p.CurrentThread().ThreadID(), p.SelectedGoroutine())
// Testing evaluation on goroutines
gs, err := proc.GoroutinesInfo(p)
assertNoError(err, t, "GoroutinesInfo")
......@@ -1237,6 +1239,8 @@ func TestFrameEvaluation(t *testing.T) {
t.Logf("could not stacktrace goroutine %d: %v\n", g.ID, err)
continue
}
t.Logf("Goroutine %d", g.ID)
logStacktrace(t, frames)
for i := range frames {
if frames[i].Call.Fn != nil && frames[i].Call.Fn.Name == "main.agoroutine" {
frame = i
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册