diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-10-26 13:31:33 +0000 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-10-26 13:31:33 +0000 |
commit | c9220a0a404bb0fa98f3ceb9cb90714d02477d03 (patch) | |
tree | 7ee5f545622c44241b11458ebd55698c0b532abd /tests | |
parent | a8365c64b4cb753d76a092f736e3b34a61447eb6 (diff) | |
download | arctica-greeter-c9220a0a404bb0fa98f3ceb9cb90714d02477d03.tar.gz arctica-greeter-c9220a0a404bb0fa98f3ceb9cb90714d02477d03.tar.bz2 arctica-greeter-c9220a0a404bb0fa98f3ceb9cb90714d02477d03.zip |
Fix failing testsuite by enforce setting XDG_DATA_DIRS internally if XDG_DATA_DIRS is not set in the environment.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.vala | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |