diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-12 21:44:17 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:13:36 +0100 |
commit | 0dd1d1be1c5f1084802daf89e988f2c1d84559c7 (patch) | |
tree | d9292ed2fcc6e0a9950807532a1e81188bc787fd /tests/unit/plugins | |
parent | 202b4d82c0b233a891e9e1a303833c15ae86e1d4 (diff) | |
download | weechat-0dd1d1be1c5f1084802daf89e988f2c1d84559c7.zip |
core: sort configuration files by name, reload them by priority (issue #1872)
Diffstat (limited to 'tests/unit/plugins')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index c5611e337..fa5d4158a 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -78,7 +78,7 @@ extern char *irc_protocol_cap_to_enable (const char *capabilities, server_recv (__irc_msg); #define CHECK_CORE(__message) \ - if (!record_search ("core.weechat", __message)) \ + if (record_search ("core.weechat", __message) < 0) \ { \ char **msg = server_build_error ( \ "Core message not displayed", \ @@ -89,7 +89,7 @@ extern char *irc_protocol_cap_to_enable (const char *capabilities, } #define CHECK_SRV(__message) \ - if (!record_search ("irc.server." IRC_FAKE_SERVER, __message)) \ + if (record_search ("irc.server." IRC_FAKE_SERVER, __message) < 0) \ { \ char **msg = server_build_error ( \ "Server message not displayed", \ @@ -113,7 +113,7 @@ extern char *irc_protocol_cap_to_enable (const char *capabilities, "(please report to developers): \"" __message "\""); #define CHECK_CHAN(__message) \ - if (!record_search ("irc." IRC_FAKE_SERVER ".#test", __message)) \ + if (record_search ("irc." IRC_FAKE_SERVER ".#test", __message) < 0) \ { \ char **msg = server_build_error ( \ "Channel message not displayed", \ @@ -124,7 +124,8 @@ extern char *irc_protocol_cap_to_enable (const char *capabilities, } #define CHECK_PV(__nick, __message) \ - if (!record_search ("irc." IRC_FAKE_SERVER "." __nick, __message)) \ + if (record_search ("irc." IRC_FAKE_SERVER "." __nick, \ + __message) < 0) \ { \ char **msg = server_build_error ( \ "Private message not displayed", \ |