• David Lazar's avatar
    runtime: make test independent of inlining · da75700a
    David Lazar authored
    TestBreakpoint expects to see "runtime.Breakpoint()" in the stack trace.
    If runtime.Breakpoint() is inlined, then the stack trace prints
    "runtime.Breakpoint(...)" since the runtime does not have information
    about arguments (or lack thereof) to inlined functions. This change
    makes the test independent of inlining by looking for the string
    "runtime.Breakpoint(". Now TestBreakpoint passes with -l=4.
    
    Change-Id: Ia044a8e8a4de2337cb2b393d6fa78c73a2f25926
    Reviewed-on: https://go-review.googlesource.com/40997
    Run-TryBot: David Lazar <lazard@golang.org>
    Reviewed-by: 's avatarAustin Clements <austin@google.com>
    da75700a
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...