summaryrefslogtreecommitdiff
path: root/tests/unit/plugins
diff options
context:
space:
mode:
author90 <hi@90.gripe>2024-04-08 18:46:27 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-04-12 22:57:57 +0200
commit8c3f16dbe3e6ea2998cc804bdb02d92d84b21149 (patch)
tree27bc19c9b5bad0b6c6d1bc538a43caad54a03cc5 /tests/unit/plugins
parent3bfe4e52ca57a9166335a7da9ec5dd2ba2622dc6 (diff)
downloadweechat-8c3f16dbe3e6ea2998cc804bdb02d92d84b21149.zip
core: add support for $XDG_STATE_HOME
Diffstat (limited to 'tests/unit/plugins')
-rw-r--r--tests/unit/plugins/test-plugin-api-info.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/unit/plugins/test-plugin-api-info.cpp b/tests/unit/plugins/test-plugin-api-info.cpp
index 07a31f9b0..a58c14f4d 100644
--- a/tests/unit/plugins/test-plugin-api-info.cpp
+++ b/tests/unit/plugins/test-plugin-api-info.cpp
@@ -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] == '/');