[libdispatch-changes] [121] trunk/testing
source_changes at macosforge.org
source_changes at macosforge.org
Wed Nov 4 02:45:50 PST 2009
Revision: 121
http://trac.macosforge.org/projects/libdispatch/changeset/121
Author: robert at 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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-changes/attachments/20091104/20f3e280/attachment.html>
More information about the libdispatch-changes
mailing list