summaryrefslogtreecommitdiff
path: root/tests/unit/plugins
diff options
context:
space:
mode:
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] == '/');