// TestTraceUnwindCGO verifies that trace events emitted in cgo callbacks // produce the same stack traces and don't cause any crashes regardless of // tracefpunwindoff being set to 0 or 1. func TestTraceUnwindCGO(t *testing.T) { … } func mustFindLogV2(t *testing.T, trc io.Reader, category string) trace.Event { … } // dumpStack returns e.Stack() as a string. func dumpStackV2(e *trace.Event) string { … }