summaryrefslogtreecommitdiff
path: root/tests/unit/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-03-19 15:23:10 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-03-19 16:47:46 +0100
commit0f4ef874ca6a7a72233b55dc85331f387b329c69 (patch)
tree2a41537cd6f126bfd5e607a306560e8fde643972 /tests/unit/core
parentd47d9c5ed5a81547bbe8a47188649a026bd99e9e (diff)
downloadweechat-0f4ef874ca6a7a72233b55dc85331f387b329c69.zip
core: do not call check callback when setting default value of option
Diffstat (limited to 'tests/unit/core')
-rw-r--r--tests/unit/core/test-core-config-file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/core/test-core-config-file.cpp b/tests/unit/core/test-core-config-file.cpp
index b63b3b168..8b2bfe0f9 100644
--- a/tests/unit/core/test-core-config-file.cpp
+++ b/tests/unit/core/test-core-config-file.cpp
@@ -915,7 +915,7 @@ TEST(CoreConfigFileWithNewOptions, OptionSetDefault)
/* string */
STRCMP_EQUAL("value", CONFIG_STRING_DEFAULT(ptr_option_str));
- LONGS_EQUAL(WEECHAT_CONFIG_OPTION_SET_ERROR,
+ LONGS_EQUAL(WEECHAT_CONFIG_OPTION_SET_OK_CHANGED,
config_file_option_set_default (ptr_option_str, "xxx", 1));
LONGS_EQUAL(WEECHAT_CONFIG_OPTION_SET_OK_CHANGED,
config_file_option_set_default (ptr_option_str, "test", 1));