[libdispatch-changes] [114] trunk

source_changes at macosforge.org source_changes at macosforge.org
Tue Nov 3 14:49:45 PST 2009


Revision: 114
          http://trac.macosforge.org/projects/libdispatch/changeset/114
Author:   robert at fledge.watson.org
Date:     2009-11-03 14:49:45 -0800 (Tue, 03 Nov 2009)
Log Message:
-----------
Add test for POSIX_SPAWN_START_SUSPENDED, and compile dispatch_proc test
if found.

Modified Paths:
--------------
    trunk/configure.ac
    trunk/testing/Makefile.am

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2009-11-03 20:31:16 UTC (rev 113)
+++ trunk/configure.ac	2009-11-03 22:49:45 UTC (rev 114)
@@ -180,6 +180,12 @@
 AC_CHECK_DECLS([VQ_UPDATE, VQ_VERYLOWDISK], [], [], [[#include <sys/mount.h>]])
 AC_CHECK_FUNCS([pthread_key_init_np pthread_main_np mach_absolute_time malloc_create_zone])
 
+AC_CHECK_DECLS([POSIX_SPAWN_START_SUSPENDED],
+  [have_posix_spawn_start_suspended=true]
+  [have_posix_spawn_start_suspended=false]
+)
+AM_CONDITIONAL(HAVE_POSIX_SPAWN_START_SUSPENDED, $have_posix_spawn_start_suspended)
+
 AC_CHECK_FUNC([sem_init],
   [have_sem_init=true],
   [have_sem_init=false]

Modified: trunk/testing/Makefile.am
===================================================================
--- trunk/testing/Makefile.am	2009-11-03 20:31:16 UTC (rev 113)
+++ trunk/testing/Makefile.am	2009-11-03 22:49:45 UTC (rev 114)
@@ -38,12 +38,17 @@
 endif
 TESTS+=$(CORESERVICES_TESTS)
 
+if HAVE_POSIX_SPAWN_START_SUSPENDED
+POSIX_SPAWN_START_SUSPENDED_TESTS=	\
+	dispatch_proc
+endif
+TESTS+=$(POSIX_SPAWN_START_SUSPENDED_TESTS)
+
 #
 # XXX: By broken, we mean non-portable.  We should instead test for the OS
 # features they depend on, or port them as required.
 #
 BROKEN_TESTS=				\
-	dispatch_proc			\
 	dispatch_timer_set_time
 
 BROKEN_TOOLS=				\
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-changes/attachments/20091103/d02454c5/attachment-0001.html>


More information about the libdispatch-changes mailing list