diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-03-19 15:23:10 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-03-19 16:47:46 +0100 |
commit | 0f4ef874ca6a7a72233b55dc85331f387b329c69 (patch) | |
tree | 2a41537cd6f126bfd5e607a306560e8fde643972 /tests/unit/core | |
parent | d47d9c5ed5a81547bbe8a47188649a026bd99e9e (diff) | |
download | weechat-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.cpp | 2 |
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)); |