Skip to content

Commit 50742c7

Browse files
authored
Mark failures in rr traces (#39630)
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.
1 parent 296acf2 commit 50742c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/Test/src/Test.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ function do_test(result::ExecutionResult, orig_expr)
553553
@assert isa(result, Threw)
554554
testres = Error(:test_error, orig_expr, result.exception, result.backtrace, result.source)
555555
end
556+
isa(testres, Pass) || ccall(:jl_breakpoint, Cvoid, (Any,), result)
556557
record(get_testset(), testres)
557558
end
558559

0 commit comments

Comments
 (0)