mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-01 14:58:09 +02:00
[test] Disable signal handling under valgrind
Capturing and handling the signals prevents valgrind from providing backtraces for fatal signals -- which is often more useful.
This commit is contained in:
parent
f853972636
commit
ca501d99bb
1 changed files with 1 additions and 1 deletions
|
|
@ -1228,7 +1228,7 @@ _cairo_test_context_run_for_target (cairo_test_context_t *ctx,
|
|||
}
|
||||
|
||||
#if defined(HAVE_SIGNAL_H) && defined(HAVE_SETJMP_H)
|
||||
if (ctx->thread == 0) {
|
||||
if (ctx->thread == 0 && ! RUNNING_ON_VALGRIND) {
|
||||
void (* volatile old_segfault_handler)(int);
|
||||
void (* volatile old_sigpipe_handler)(int);
|
||||
void (* volatile old_sigabrt_handler)(int);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue