From 1c5e5824e78ac66ba60f6a60202c7fb177c79524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 3 Oct 2020 14:40:59 +0200 Subject: tests: run callback when resetting options in tests --- tests/unit/core/test-core-string.cpp | 4 ++-- tests/unit/gui/test-gui-line.cpp | 2 +- tests/unit/plugins/irc/test-irc-protocol.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/unit/core/test-core-string.cpp b/tests/unit/core/test-core-string.cpp index d12b2acea..f5b68ee34 100644 --- a/tests/unit/core/test-core-string.cpp +++ b/tests/unit/core/test-core-string.cpp @@ -1985,7 +1985,7 @@ TEST(CoreString, IsCommandChar) LONGS_EQUAL(1, string_is_command_char ("ï_öabc")); LONGS_EQUAL(1, string_is_command_char ("/abc")); - config_file_option_reset (config_look_command_chars, 0); + config_file_option_reset (config_look_command_chars, 1); } /* @@ -2049,7 +2049,7 @@ TEST(CoreString, InputForBuffer) STRCMP_EQUAL(str + 2, string_input_for_buffer (str)); free (str); - config_file_option_reset (config_look_command_chars, 0); + config_file_option_reset (config_look_command_chars, 1); } /* diff --git a/tests/unit/gui/test-gui-line.cpp b/tests/unit/gui/test-gui-line.cpp index 62f7dd3a3..999ef1288 100644 --- a/tests/unit/gui/test-gui-line.cpp +++ b/tests/unit/gui/test-gui-line.cpp @@ -714,7 +714,7 @@ TEST(GuiLine, SetHighlight) free (line.data->message); line.data->message = NULL; - config_file_option_reset (config_look_highlight, 0); + config_file_option_reset (config_look_highlight, 1); free (line.data); } diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index 9e3088039..d1697c165 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -382,7 +382,7 @@ TEST(IrcProtocolWithServer, NickAddress) gui_color_get_custom ("reset")); STRCMP_EQUAL(result, irc_protocol_nick_address (ptr_server, 1, ptr_nick, "alice", "example.com")); - config_file_option_reset (irc_config_look_color_nicks_in_server_messages, 0); + config_file_option_reset (irc_config_look_color_nicks_in_server_messages, 1); } /* -- cgit v1.2.3