[cairo-commit] test/cairo-test-runner.c

Andrea Canciani ranma42 at kemper.freedesktop.org
Thu Dec 15 13:10:43 PST 2011


 test/cairo-test-runner.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 5ce6e0279308736420654fa49b47f0bdf5f782eb
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Thu Dec 15 13:04:02 2011 -0800

    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.

diff --git a/test/cairo-test-runner.c b/test/cairo-test-runner.c
index b0e598d..a5c6705 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>


More information about the cairo-commit mailing list