diff options
author | Robin Jarry <robin@jarry.cc> | 2023-08-29 09:07:16 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-09-19 23:01:36 +0200 |
commit | 37d5fc691aff24e5e41d5775bb6777b7cb4818c5 (patch) | |
tree | 40609ce5b1ff09aab29689dce6ce93d5eccfe041 /lib/parse/match.go | |
parent | ffef6e54dacdf0920f209f3fcc40b72d5027cd30 (diff) | |
download | aerc-37d5fc691aff24e5e41d5775bb6777b7cb4818c5.tar.gz |
xdg: fix unit tests on macos
When any XDG_*_HOME or XDG_RUNTIME_DIR variables are set, this causes
test failures.
FAIL: TestConfigPath//home/user/Library/Preferences/aerc/accounts.conf (0.00s)
xdg_test.go:86: got "/Users/vitaly/.config/aerc/accounts.conf"
expected "/home/user/Library/Preferences/aerc/accounts.conf"
Avoid leaking the local user's environment in the unit tests. Always
override the XDG_* variables.
Fixes: fff16640ad7c ("xdg: add functions to deal with user home paths")
Reported-by: Vitaly Ovchinnikov <v@postbox.nz>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Vitaly Ovchinnikov <v@postbox.nz>
Diffstat (limited to 'lib/parse/match.go')
0 files changed, 0 insertions, 0 deletions