From 4e4a3fa5aea99164af6eadacae00f4ae0eadedfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 18 Oct 2023 05:23:06 +0200 Subject: Add final xdg basedir test. This moves the coverage to 100%! --- tests/unit/util/xdg-basedir.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/unit/util/xdg-basedir.scm') 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)) -- cgit v1.2.3