From c9220a0a404bb0fa98f3ceb9cb90714d02477d03 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 26 Oct 2015 13:31:33 +0000 Subject: Fix failing testsuite by enforce setting XDG_DATA_DIRS internally if XDG_DATA_DIRS is not set in the environment. --- tests/test.vala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/test.vala b/tests/test.vala index ad495b7..50a6530 100644 --- a/tests/test.vala +++ b/tests/test.vala @@ -755,6 +755,8 @@ public class Test DirUtils.create_with_parents(schema_dir, 0700); var data_dirs = Environment.get_variable("XDG_DATA_DIRS"); + if (data_dirs == null) + data_dirs = "/usr/share"; Environment.set_variable("XDG_DATA_DIRS", "%s:%s".printf(Path.build_filename(dir, "share"), data_dirs), true); var top_srcdir = Environment.get_variable("top_srcdir"); -- cgit v1.2.3