[PATCH] test-lib: unset XDG_CONFIG_HOME

Subject: [PATCH] test-lib: unset XDG_CONFIG_HOME

Date: Sun, 18 Apr 2021 10:48:46 +0700

To: notmuch@notmuchmail.org

Cc: Đoàn Trần Công Danh

From: Đoàn Trần Công Danh


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 | 3 +++
 1 file changed, 3 insertions(+)

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
 
-- 
2.31.1.192.g0881477623
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: