1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 03:33:12 +02:00

tests: replace POINTERS_EQUAL by STRCMP_EQUAL in string comparisons with NULL

This commit is contained in:
Sébastien Helleu
2024-09-14 10:26:42 +02:00
parent cfd4ab909f
commit 6908eec160
43 changed files with 777 additions and 976 deletions
+3 -3
View File
@@ -178,7 +178,7 @@ TEST(HookModifier, Modifier)
/* check hook contents */
CHECK(hook);
POINTERS_EQUAL(NULL, hook->plugin);
POINTERS_EQUAL(NULL, hook->subplugin);
STRCMP_EQUAL(NULL, hook->subplugin);
LONGS_EQUAL(HOOK_TYPE_MODIFIER, hook->type);
LONGS_EQUAL(0, hook->deleted);
LONGS_EQUAL(0, hook->running);
@@ -207,7 +207,7 @@ TEST(HookModifier, Modifier)
gui_chat_printf_date_tags (test_buffer, 0, NULL, "\t\tmessage");
ptr_line = test_buffer->own_lines->last_line;
LONGS_EQUAL(0, ptr_line->data->date);
POINTERS_EQUAL(NULL, ptr_line->data->prefix);
STRCMP_EQUAL(NULL, ptr_line->data->prefix);
STRCMP_EQUAL("message (modified)", ptr_line->data->message);
/* message without date: add a date/prefix */
@@ -246,7 +246,7 @@ TEST(HookModifier, Modifier)
"prefix\tmessage");
ptr_line = test_buffer->own_lines->last_line;
LONGS_EQUAL(0, ptr_line->data->date);
POINTERS_EQUAL(NULL, ptr_line->data->prefix);
STRCMP_EQUAL(NULL, ptr_line->data->prefix);
STRCMP_EQUAL("message (modified)", ptr_line->data->message);
/* close the test buffer */