[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:
Chris Wilson 2009-04-01 11:41:59 +01:00
parent f853972636
commit ca501d99bb

View file

@ -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);