summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/plugins/trigger/test-trigger.cpp4
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);