summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-04-01 11:41:59 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-04-16 09:34:01 +0100
commitca501d99bbec432252cbb134d863801d4a792a44 (patch)
tree0b59664d81468f378a589d5300885b44c357af5a /test
parentf8539726368141f8b42c7817cfd59b4abfce33f3 (diff)
[test] Disable signal handling under valgrind
Capturing and handling the signals prevents valgrind from providing backtraces for fatal signals -- which is often more useful.
Diffstat (limited to 'test')
-rw-r--r--test/cairo-test.c2
1 files changed, 1 insertions, 1 deletions
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);