diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-10-28 18:20:24 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-10-28 18:20:24 +0200 |
commit | 1ed4742c8938c67998c829dec90d82221f98cb94 (patch) | |
tree | 1043e0f3e3c6d508aeb167ba81959b4d23ed7cd8 /source/tests | |
parent | a1a11b0092fcc1b687717929b03c4288fc473c16 (diff) | |
download | kit-1ed4742c8938c67998c829dec90d82221f98cb94.zip |
win32: Fix temp path
Diffstat (limited to 'source/tests')
-rw-r--r-- | source/tests/file.test.c | 6 |
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); |