From ca501d99bbec432252cbb134d863801d4a792a44 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 1 Apr 2009 11:41:59 +0100 Subject: [test] Disable signal handling under valgrind Capturing and handling the signals prevents valgrind from providing backtraces for fatal signals -- which is often more useful. --- test/cairo-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/cairo-test.c') diff --git a/test/cairo-test.c b/test/cairo-test.c index 568d8f81..897332ab 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -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); -- cgit v1.2.3