aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-10-18 05:23:06 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-10-18 05:23:06 +0200
commit4e4a3fa5aea99164af6eadacae00f4ae0eadedfa (patch)
tree3e954c20ec7ffc019a22a7cfdf685189610661b3 /tests
parentUpdate coverage supplement. (diff)
downloadcalp-4e4a3fa5aea99164af6eadacae00f4ae0eadedfa.tar.gz
calp-4e4a3fa5aea99164af6eadacae00f4ae0eadedfa.tar.xz
Add final xdg basedir test.
This moves the coverage to 100%!
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/util/xdg-basedir.scm6
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))