From 5e360638932da270999d6f0d0b8f60d417f4b4c4 Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Mon, 23 Sep 2024 17:13:23 +0200 Subject: [PATCH] test-libnm: add comment explaining one assertion --- src/libnm-client-impl/tests/test-libnm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libnm-client-impl/tests/test-libnm.c b/src/libnm-client-impl/tests/test-libnm.c index 9515594693..4a59f6eca6 100644 --- a/src/libnm-client-impl/tests/test-libnm.c +++ b/src/libnm-client-impl/tests/test-libnm.c @@ -3004,8 +3004,13 @@ test_nml_dbus_meta(void) g_assert(NM_IS_OBJECT_CLASS(p->klass)); g_assert(g_type_is_a(gtype, G_TYPE_FROM_CLASS(p->klass))); if (ii == 0) + /* If there is more than one NMLDBusPropertyO needed in the struct + * associated to the DBus object, they must be all in the same struct field + * as an array. This is later used on nm-object.c to perform operations on + * all the object properties at once. */ g_assert(p->klass->property_o_info == p); else + /* Same check than above if branch but for NMLDBusPropertyAO. */ g_assert(p->klass->property_ao_info == p); g_assert_cmpint(p->klass->priv_ptr_offset, >, 0); if (p_prev) {