[evolution-data-server/sqlite-refactor: 17/21] test-server-utils: Disable the cache-reaper in the test environment



commit af92bfd80e42e7c81c5b8dacd0eb7c87efd8f16a
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Fri Nov 29 21:24:01 2013 +0900

    test-server-utils: Disable the cache-reaper in the test environment
    
    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 |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-server-utils/Makefile.am b/tests/test-server-utils/Makefile.am
index 202f62c..0ba818a 100644
--- a/tests/test-server-utils/Makefile.am
+++ b/tests/test-server-utils/Makefile.am
@@ -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) \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]