]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-event-filter - Fix parent/child events to actually be parent/child
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 23 Aug 2021 14:15:47 +0000 (17:15 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 29 Sep 2021 10:09:58 +0000 (10:09 +0000)
src/lib/test-event-filter.c

index ed914c3019dbbf95f1bde4f974128913ac693652..d308348e6cf234b0e57fc62a47067eccc87fddca 100644 (file)
@@ -19,7 +19,7 @@ static void test_event_filter_override_parent_fields(void)
        event_add_int(parent, "int1", 0);
        event_add_int(parent, "int2", 5);
 
-       struct event *child = event_create(NULL);
+       struct event *child = event_create(parent);
        event_add_str(child, "str", "child_str");
        event_add_int(child, "int1", 6);
        event_add_int(child, "int2", 0);
@@ -56,7 +56,7 @@ static void test_event_filter_clear_parent_fields(void)
        event_add_str(parent, "str", "parent_str");
        event_add_int(parent, "int", 0);
 
-       struct event *child = event_create(NULL);
+       struct event *child = event_create(parent);
        event_field_clear(child, "str");
        event_field_clear(child, "int");