Revision: 121 http://trac.macosforge.org/projects/libdispatch/changeset/121 Author: robert@fledge.watson.org Date: 2009-11-04 02:45:49 -0800 (Wed, 04 Nov 2009) Log Message: ----------- Condition building dispatch_timer_set_time on USE_LEGACY_API; we will rely on config.h in the testing code to detect system features. Modified Paths: -------------- trunk/testing/Makefile.am trunk/testing/dispatch_timer_set_time.c Modified: trunk/testing/Makefile.am =================================================================== --- trunk/testing/Makefile.am 2009-11-04 09:55:21 UTC (rev 120) +++ trunk/testing/Makefile.am 2009-11-04 10:45:49 UTC (rev 121) @@ -46,13 +46,16 @@ endif TESTS+=$(POSIX_SPAWN_START_SUSPENDED_TESTS) +if USE_LEGACY_API +LEGACY_TESTS= \ + dispatch_timer_set_time +endif +TESTS+=$(LEGACY_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_timer_set_time - BROKEN_TOOLS= \ harness \ nsoperation @@ -66,5 +69,5 @@ INCLUDES=-I$(top_builddir) -I$(top_srcdir) LDADD=libtest.la ../src/libdispatch.la -CFLAGS=-Werror -Wall -DDISPATCH_NO_LEGACY $(MARCH_FLAGS) $(CBLOCKS_FLAGS) +CFLAGS=-Werror -Wall $(MARCH_FLAGS) $(CBLOCKS_FLAGS) Modified: trunk/testing/dispatch_timer_set_time.c =================================================================== --- trunk/testing/dispatch_timer_set_time.c 2009-11-04 09:55:21 UTC (rev 120) +++ trunk/testing/dispatch_timer_set_time.c 2009-11-04 10:45:49 UTC (rev 121) @@ -6,6 +6,9 @@ #include <dispatch/dispatch.h> +#define __DISPATCH_INDIRECT__ +#include "src/legacy.h" + #include "dispatch_test.h" int main(void)
participants (1)
-
source_changes@macosforge.org