Modified: trunk/testing/Makefile.am (120 => 121)
--- 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 (120 => 121)
--- 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)