From dd9c1a0cad35082724bba59235af031246c06ce5 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Sun, 8 Jul 2012 14:41:33 -0400 Subject: clean up and factor out the 'shm' code Remove the shm code from the engine and the service and put it in a separate convenience library in shm/. Remove the vestigial shmdir weirdness from the service (since shmdir is now always relative to XDG_RUNTIME_DIR and has been for some time). The purpose of this is so that dconf-engine can be properly unit-tested. dconf-engine now has five points of contact with the world (excluding the users of the engine themselves): - the DCONF_PROFILE environment variable - fopen() of profile files - shm - gvdb - dbus The environment variable is quite easily controlled. fopen() is intercepted in the engine testcase with a interpose of the libc symbol. With this commit now each of dbus, gvdb and shm are implemented in separate utility modules that can be mocked from the testcases. --- tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am index 6e6b415..fc4e551 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -19,6 +19,7 @@ changeset_SOURCES = changeset.c engine_LIBS = \ ../engine/libdconf-engine.a \ + ../shm/libdconf-shm.a \ ../common/libdconf-common.a engine_with_stub_LIBS = \ -- cgit v1.2.1