summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2015-10-14 11:34:31 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2015-10-14 11:34:31 +0100
commit70dd0ea470cc4d742d07f0e68ea86c6c621b48fc (patch)
treedbe8b896fa3cebe34454bd872107c321d29324b1
parent802a0dae02e1e10d46a02fec4bbcc428ec3365f9 (diff)
TestMain: unset UPSTART_SESSION not to mess with real system
(bzr r4008.9.5)
-rw-r--r--tests/test_main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_main.cpp b/tests/test_main.cpp
index 5321f8e52..5ce3aeca4 100644
--- a/tests/test_main.cpp
+++ b/tests/test_main.cpp
@@ -18,6 +18,7 @@ int main(int argc, char** argv)
const std::string LOCAL_DATA_DIR = BUILDDIR"/tests/data:/usr/share";
g_setenv("XDG_DATA_DIRS", LOCAL_DATA_DIR.c_str(), TRUE);
g_setenv("LC_ALL", "C", TRUE);
+ g_unsetenv("UPSTART_SESSION");
Utils::init_gsettings_test_environment();
gtk_init(&argc, &argv);