aboutsummaryrefslogtreecommitdiff
path: root/tests/main.vala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.vala')
-rw-r--r--tests/main.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/main.vala b/tests/main.vala
index dca3b8b2..e2782d1d 100644
--- a/tests/main.vala
+++ b/tests/main.vala
@@ -77,6 +77,8 @@ public class Tests : Object, Fixture {
((!) _bus).add_service_dir (SERVICE_DIR);
((!) _bus).up ();
+ Environment.set_variable ("XDG_RUNTIME_DIR", XDG_RUNTIME_DIR, true);
+
var loop = new MainLoop (null, false);
_service_name = Bus.own_name (BusType.SESSION,
@@ -130,6 +132,8 @@ public class Tests : Object, Fixture {
if (_bus != null) {
((!) _bus).down ();
_bus = null;
+
+ Environment.set_variable ("XDG_RUNTIME_DIR", XDG_RUNTIME_DIR, true);
}
}