summaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/file.test.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/tests/file.test.c b/source/tests/file.test.c
index 6fde8fa..646d0ef 100644
--- a/source/tests/file.test.c
+++ b/source/tests/file.test.c
@@ -14,9 +14,7 @@ TEST("path cache") {
str_builder_t expected =
#if defined(_WIN32) && !defined(__CYGWIN__)
- path_join(WRAP_STR(user),
- SZ("AppData" PATH_DELIM "Local" PATH_DELIM "Temp"),
- NULL);
+ get_env(SZ("TEMP"), NULL);
#elif defined(__APPLE__)
path_join(WRAP_STR(user), SZ("Library" PATH_DELIM "Caches"),
NULL);
@@ -24,8 +22,6 @@ TEST("path cache") {
path_join(WRAP_STR(user), SZ(".cache"), NULL);
#endif
- printf("cache: %s \ngot: %s \n", BS(cache), BS(expected));
-
REQUIRE(AR_EQUAL(cache, expected));
DA_DESTROY(user);