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.
This commit is contained in:
Đoàn Trần Công Danh 2021-04-18 10:48:46 +07:00 committed by David Bremner
parent 9ad19e4454
commit 828a004921

View 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