test-server-utils: Disable the cache-reaper in the test environment
authorTristan Van Berkom <tristanvb@openismus.com>
Fri, 29 Nov 2013 12:24:01 +0000 (21:24 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Fri, 29 Nov 2013 13:08:03 +0000 (22:08 +0900)
This causes races, when changing the locale, the previous/complete
test (which is not shut down properly) is getting I/O errors because
the cache-reaper comes to screw up the day.

tests/test-server-utils/Makefile.am

index 202f62c..0ba818a 100644 (file)
@@ -4,6 +4,13 @@ SUBDIRS = services
 
 @GNOME_CODE_COVERAGE_RULES@
 
+# The registry modules used to point here:
+#   -DEDS_TEST_REGISTRY_DIR=\""$(abs_top_builddir)/modules/cache-reaper/.libs"
+#
+# But this causes ./tests/libebook/client/test-client-cursor-operations to race
+# against the cache reaper, now we're just ensuring there is no cache reaper 
+# in the test environment, note that the above test runs fine with
+# TEST_INSTALLED_SERVICES=1
 common_cflags = \
        $(AM_CPPFLAGS) \
        -I$(top_srcdir) \
@@ -18,7 +25,7 @@ common_cflags = \
        -DEDS_TEST_SCHEMA_DIR=\""$(abs_top_builddir)/data"\" \
        -DEDS_TEST_ADDRESS_BOOK_DIR=\""$(abs_top_builddir)/addressbook/backends/file/.libs"\" \
        -DEDS_TEST_CALENDAR_DIR=\""$(abs_top_builddir)/calendar/backends/file/.libs"\" \
-       -DEDS_TEST_REGISTRY_DIR=\""$(abs_top_builddir)/modules/cache-reaper/.libs"\" \
+       -DEDS_TEST_REGISTRY_DIR=\""$(abs_top_builddir)/"\" \
        -DEDS_TEST_CAMEL_DIR=\""$(abs_top_builddir)/camel/providers/local/.libs"\" \
        $(E_DATA_SERVER_CFLAGS) \
        $(EVOLUTION_CALENDAR_CFLAGS) \