summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-10-03 14:40:59 +0200
committerSébastien Helleu <flashcode@flashtux.org>2020-10-03 14:40:59 +0200
commit1c5e5824e78ac66ba60f6a60202c7fb177c79524 (patch)
treee5e1f214f19ebe52255e3aa4fe37bf7d33621db7 /tests
parentb32f561f776ab2db02e2ac5c15e968e6dc94baf2 (diff)
downloadweechat-1c5e5824e78ac66ba60f6a60202c7fb177c79524.zip
tests: run callback when resetting options in tests
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/core/test-core-string.cpp4
-rw-r--r--tests/unit/gui/test-gui-line.cpp2
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp2
3 files changed, 4 insertions, 4 deletions
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);
}
/*