aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2021-04-18 10:48:46 +0700
committerDavid Bremner <david@tethera.net>2021-04-18 10:00:10 -0300
commit828a004921ab0736634203cd07cc41393da00047 (patch)
treefbf6fa62b72fbc310ca9368a0c38813fb086af52 /test
parent9ad19e4454ff98342a6c0ec5a7e44c8c516e6fcd (diff)
test-lib: unset XDG_CONFIG_HOME
lib/open.cc:_load_key_file will only open xdg-config files in $XDG_CONFIG_HOME if it's defined, $HOME/.config will be considered if and only if XDG_CONFIG_HOME not defined. Let's unset said variable before running the test.
Diffstat (limited to 'test')
-rw-r--r--test/test-lib.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 098d69da..3f8d5827 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -104,6 +104,9 @@ unset CDPATH
unset GREP_OPTIONS
+# For lib/open.cc:_load_key_file
+unset XDG_CONFIG_HOME
+
# For emacsclient
unset ALTERNATE_EDITOR