diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-10-18 05:23:06 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-10-18 05:23:06 +0200 |
commit | 4e4a3fa5aea99164af6eadacae00f4ae0eadedfa (patch) | |
tree | 3e954c20ec7ffc019a22a7cfdf685189610661b3 | |
parent | Update coverage supplement. (diff) | |
download | calp-4e4a3fa5aea99164af6eadacae00f4ae0eadedfa.tar.gz calp-4e4a3fa5aea99164af6eadacae00f4ae0eadedfa.tar.xz |
Add final xdg basedir test.
This moves the coverage to 100%!
Diffstat (limited to '')
-rw-r--r-- | tests/unit/util/xdg-basedir.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/util/xdg-basedir.scm b/tests/unit/util/xdg-basedir.scm index 5731b581..bf0b84e5 100644 --- a/tests/unit/util/xdg-basedir.scm +++ b/tests/unit/util/xdg-basedir.scm @@ -56,4 +56,10 @@ (test-assert "No error was emitted" (string-null? warning))))) +(test-group "Empty string works as unset" + (let-env ((XDG_CONFIG_DIRS "")) + (test-equal "XDG_CONFIG_DIRS" + '("/etc/xdg") + (xdg-config-dirs)))) + '((xdg basedir)) |