summaryrefslogtreecommitdiff
path: root/test/cairo-test-runner.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-12-15 13:04:02 -0800
committerAndrea Canciani <ranma42@gmail.com>2011-12-15 13:04:02 -0800
commit5ce6e0279308736420654fa49b47f0bdf5f782eb (patch)
tree717951b1013a14344d6465123dc543d16bfb33cd /test/cairo-test-runner.c
parentbbe692372d593a70d80de9fdb0de521a9f012f08 (diff)
downloadcairo-5ce6e0279308736420654fa49b47f0bdf5f782eb.tar.gz
test: Use fork() on MacOS X
MacOS X 10.7 (and maybe some previous versions, too) can fork() processes which use CoreGraphics. This makes it possible for cairo-test-suite to withstand a test crash without killing the whole suite. The old behavior is still available using the '-f' (foreground) option.
Diffstat (limited to 'test/cairo-test-runner.c')
-rw-r--r--test/cairo-test-runner.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/cairo-test-runner.c b/test/cairo-test-runner.c
index b0e598dbc..a5c67056a 100644
--- a/test/cairo-test-runner.c
+++ b/test/cairo-test-runner.c
@@ -35,10 +35,7 @@
#include <pixman.h> /* for version information */
-/* Coregraphics doesn't seem to like being forked and reports:
- * "The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec()."
- * so we don't for on OS X */
-#define SHOULD_FORK HAVE_FORK && HAVE_WAITPID && !__APPLE__
+#define SHOULD_FORK HAVE_FORK && HAVE_WAITPID
#if SHOULD_FORK
#if HAVE_UNISTD_H
#include <unistd.h>