]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime/trace: better output when test fails
authorDavid Lazar <lazard@golang.org>
Thu, 13 Apr 2017 13:35:31 +0000 (09:35 -0400)
committerDavid Lazar <lazard@golang.org>
Fri, 14 Apr 2017 12:21:02 +0000 (12:21 +0000)
Change-Id: I108d15eb4cd25904bb76de4ed7548c039c69d1a3
Reviewed-on: https://go-review.googlesource.com/40590
Run-TryBot: David Lazar <lazard@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/trace/trace_stack_test.go

index fed6bad3a09d00b9c46f48f0a2e1305c40fafcb9..274cdf7800ab3cfaf181db606784fc8d9210b2b8 100644 (file)
@@ -276,9 +276,10 @@ func TestTraceSymbolize(t *testing.T) {
                                continue
                        }
                        for _, f := range ev.Stk {
-                               t.Logf("  %v:%v", f.Fn, f.Line)
+                               t.Logf("  %v :: %s:%v", f.Fn, f.File, f.Line)
                        }
                        t.Logf("---")
                }
+               t.Logf("======")
        }
 }