summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-09-03 13:43:07 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-09-03 13:43:07 +0200
commit5fb7ebdfce61f038402a54d7f6dd9d74edab4d9f (patch)
treea20d3c3bcfe98b9f482edefa6d0d7288dcf5f68e /tests/unit
parent6fc6166cfe6c1ee4b6a2a8451b318bcf4f7fafb4 (diff)
downloadweechat-5fb7ebdfce61f038402a54d7f6dd9d74edab4d9f.zip
irc: fix send of empty JOIN when connecting to a server with only parted channels (closes #1638)
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/plugins/irc/test-irc-server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/plugins/irc/test-irc-server.cpp b/tests/unit/plugins/irc/test-irc-server.cpp
index d891d3ea0..2446f2905 100644
--- a/tests/unit/plugins/irc/test-irc-server.cpp
+++ b/tests/unit/plugins/irc/test-irc-server.cpp
@@ -1088,7 +1088,7 @@ TEST(IrcServerConnected, BuildAutojoin)
server_recv (":server 001 alice");
- WEE_TEST_STR("", irc_server_build_autojoin (ptr_server));
+ POINTERS_EQUAL(NULL, irc_server_build_autojoin (ptr_server));
/* join one channel */
server_recv (":alice!user@host JOIN #test1");
@@ -1096,7 +1096,7 @@ TEST(IrcServerConnected, BuildAutojoin)
/* simulate a "parted" channel */
ptr_server->channels->part = 1;
- WEE_TEST_STR("", irc_server_build_autojoin (ptr_server));
+ POINTERS_EQUAL(NULL, irc_server_build_autojoin (ptr_server));
/* restore "part" flag */
ptr_server->channels->part = 0;