test: unset $XDG_{CONFIG,DATA}_DIRS
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 13 Sep 2018 07:37:33 +0000 (16:37 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 13 Sep 2018 10:13:54 +0000 (12:13 +0200)
commit2b8b1056d926440e2e1b58ffe25012445031dac5
treee1a3157df29a26d3ac8ef56f8930860cb05ae928
parentc633b0a64270d67754c243c6b9d2ed155dbd8e30
test: unset $XDG_{CONFIG,DATA}_DIRS

When $XDG_DATA_DIRS is unset, then, the default value
'/usr/local/share:/usr/share' is used.
When $XDG_DATA_DIRS contain the default paths but the order
is inverted: '/usr/share:/usr/local/share', then test-path-lookup fails.

Fixes #10002.
src/test/test-path-lookup.c