summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-05-25 19:13:08 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-05-25 19:13:08 +0200
commit1452497b32a515b500d232fc530d3db52f4f0a6b (patch)
treebcdea57b016f0367b3959e3a67b1c339f975e073 /tests
parent2c7057bf2211da27028a699746bea4c4fe1cb7d9 (diff)
downloadweechat-1452497b32a515b500d232fc530d3db52f4f0a6b.zip
tests: fix tests on hook_infolist_get with an invalid pointer
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/plugins/test-plugin-api-info.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/plugins/test-plugin-api-info.cpp b/tests/unit/plugins/test-plugin-api-info.cpp
index a58c14f4d..a8c38c5a0 100644
--- a/tests/unit/plugins/test-plugin-api-info.cpp
+++ b/tests/unit/plugins/test-plugin-api-info.cpp
@@ -1196,7 +1196,7 @@ TEST(PluginApiInfo, InfolistPluginCb)
char *name;
/* invalid plugin pointer */
- infolist = hook_infolist_get (NULL, "plugin", (void *)0x1, NULL);
+ POINTERS_EQUAL(NULL, hook_infolist_get (NULL, "plugin", (void *)0x1, NULL));
/* all plugins */
infolist = hook_infolist_get (NULL, "plugin", NULL, NULL);
@@ -1240,7 +1240,7 @@ TEST(PluginApiInfo, InfolistProxyCb)
struct t_proxy *ptr_proxy1, *ptr_proxy2;
/* invalid proxy pointer */
- infolist = hook_infolist_get (NULL, "proxy", (void *)0x1, NULL);
+ POINTERS_EQUAL(NULL, hook_infolist_get (NULL, "proxy", (void *)0x1, NULL));
ptr_proxy1 = proxy_new ("proxy1", "http", "off",
"proxy1.example.com", "8000", "user1", "pass1");