1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 21:06:38 +02:00

core: add support for $XDG_STATE_HOME

This commit is contained in:
90
2024-04-08 18:46:27 +01:00
committed by Sébastien Helleu
parent 3bfe4e52ca
commit 8c3f16dbe3
17 changed files with 166 additions and 35 deletions
+9 -1
View File
@@ -164,8 +164,9 @@ TEST(PluginApiInfo, AbsolutePath)
* plugin_api_info_absolute_path
* plugin_api_info_weechat_config_dir_cb
* plugin_api_info_weechat_data_dir_cb
* plugin_api_info_weechat_state_dir_cb
* plugin_api_info_weechat_cache_dir_cb
* plugin_api_info_weechat_cache_dir_cb
* plugin_api_info_weechat_runtime_dir_cb
*/
TEST(PluginApiInfo, WeechatDir)
@@ -186,6 +187,13 @@ TEST(PluginApiInfo, WeechatDir)
CHECK(strstr (str, "/tmp_weechat_test"));
free (str);
str = hook_info_get (NULL, "weechat_state_dir", NULL);
CHECK(str);
CHECK(str[0] == '/');
CHECK(strlen (str) > 1);
CHECK(strstr (str, "/tmp_weechat_test"));
free (str);
str = hook_info_get (NULL, "weechat_cache_dir", NULL);
CHECK(str);
CHECK(str[0] == '/');