From 1452497b32a515b500d232fc530d3db52f4f0a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 25 May 2024 19:13:08 +0200 Subject: [PATCH] tests: fix tests on hook_infolist_get with an invalid pointer --- tests/unit/plugins/test-plugin-api-info.cpp | 4 ++-- 1 file 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");