Skip to content

Commit

Permalink
Mark failures in rr traces (JuliaLang#39630)
Browse files Browse the repository at this point in the history
This makes it easy to navigate to failed test in long rr traces by setting a breakpoint in
`jl_breakpoint`. Longer term we may want to do something fancier to enable automation,
but hopefully this is at least makes it easier to debug traces from Julia CI.
  • Loading branch information
Keno committed Feb 12, 2021
1 parent 296acf2 commit 50742c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stdlib/Test/src/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ function do_test(result::ExecutionResult, orig_expr)
@assert isa(result, Threw)
testres = Error(:test_error, orig_expr, result.exception, result.backtrace, result.source)
end
isa(testres, Pass) || ccall(:jl_breakpoint, Cvoid, (Any,), result)
record(get_testset(), testres)
end

Expand Down

0 comments on commit 50742c7

Please sign in to comment.