EDataBook: Use separate environment variable to control localed bus
authorMateusz Polrola <mateusz.polrola@gmail.com>
Fri, 30 May 2014 10:03:32 +0000 (12:03 +0200)
committerMateusz Polrola <mateusz.polrola@gmail.com>
Fri, 30 May 2014 10:03:32 +0000 (12:03 +0200)
Cherry picked from commits in openismus-work-3-8:
Use separate environment variable to control localed bus, instead of
EDS_TESTING 089526

addressbook/libedata-book/e-data-book-factory.c
tests/test-server-utils/e-test-server-utils.c

index 96fb1d4..a451413 100644 (file)
@@ -807,7 +807,7 @@ data_book_factory_initable_init (GInitable *initable,
        /* When running tests, we pretend to be the "org.freedesktop.locale1" service
         * on the session bus instead of the real location on the system bus.
         */
-       if (g_getenv ("EDS_TESTING") != NULL)
+       if (g_getenv ("EDS_LOCALED_TESTING") != NULL)
                bus_type = G_BUS_TYPE_SESSION;
 
        /* Watch system bus for locale change notifications */
index 71cfe81..877031d 100644 (file)
@@ -250,6 +250,7 @@ setup_environment (void)
        g_assert (g_setenv ("EDS_CAMEL_PROVIDER_DIR", EDS_TEST_CAMEL_DIR, TRUE));
        g_assert (g_setenv ("GIO_USE_VFS", "local", TRUE));
        g_assert (g_setenv ("EDS_TESTING", "1", TRUE));
+       g_assert (g_setenv ("EDS_LOCALED_TESTING", "1", TRUE));
        g_assert (g_setenv ("GSETTINGS_BACKEND", "memory", TRUE));
 
        g_unsetenv ("DISPLAY");