diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-04-11 10:42:24 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-04-11 10:42:24 +0200 |
commit | ae39b7ce61a6c1d399ab49c00e17a206088dd5fb (patch) | |
tree | 8ed18dd28d8efcc80a78974f4f378586b4adaa91 /tests | |
parent | 044bcd075168bf0145aae50f8f4b0ef1926b5d3a (diff) | |
download | weechat-ae39b7ce61a6c1d399ab49c00e17a206088dd5fb.zip |
tests: fix if/else blocks in trigger tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/plugins/trigger/test-trigger.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/plugins/trigger/test-trigger.cpp b/tests/unit/plugins/trigger/test-trigger.cpp index acf5c544c..403a4da6a 100644 --- a/tests/unit/plugins/trigger/test-trigger.cpp +++ b/tests/unit/plugins/trigger/test-trigger.cpp @@ -416,9 +416,13 @@ TEST(Trigger, New) LONGS_EQUAL(0, trigger->hook_count_cmd); LONGS_EQUAL(0, trigger->hook_running); if (enabled && (hook_type == TRIGGER_HOOK_PRINT)) + { STRCMP_EQUAL("args", trigger->hook_print_buffers); + } else + { POINTERS_EQUAL(NULL, trigger->hook_print_buffers); + } LONGS_EQUAL(1, trigger->regex_count); CHECK(trigger->regex); POINTERS_EQUAL(NULL, trigger->regex[0].variable); |