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.
This commit is contained in:
parent
4f70ff0a77
commit
e1f2626b56
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user