]> git.notmuchmail.org Git - notmuch/commitdiff
test-lib: unset XDG_CONFIG_HOME
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Sun, 18 Apr 2021 03:48:46 +0000 (10:48 +0700)
committerDavid Bremner <david@tethera.net>
Sun, 18 Apr 2021 13:00:10 +0000 (10:00 -0300)
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.

test/test-lib.sh

index 098d69da347cffc689cb986761421f3ad2444250..3f8d58277dc1b5b550da51826d4cf2365276cf27 100644 (file)
@@ -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