about summary refs log tree commit diff
path: root/src/core/tests/test-l3cfg.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2025-02-12 13:46:50 +0100
committerMichael Biebl <biebl@debian.org>2025-02-12 13:46:50 +0100
commit8bdf070ff046f482f6eb5e2b15ebc216f5d1e3da (patch)
treef706478d189d54c6532e8863d4b0d5ff5575af60 /src/core/tests/test-l3cfg.c
parent818258cf34b83fbc754633295e1052d4752d7b15 (diff)
New upstream version 1.51.90 upstream/1.51.90
Diffstat (limited to 'src/core/tests/test-l3cfg.c')
-rw-r--r--src/core/tests/test-l3cfg.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/core/tests/test-l3cfg.c b/src/core/tests/test-l3cfg.c
index 6b82fe43..6e11ca51 100644
--- a/src/core/tests/test-l3cfg.c
+++ b/src/core/tests/test-l3cfg.c
@@ -111,7 +111,7 @@ _test_fixture_1_teardown(TestFixture1 *f)
     g_object_unref(f->platform);
     nm_dedup_multi_index_unref(f->multiidx);
 
-    *f = (TestFixture1){
+    *f = (TestFixture1) {
         .test_idx = 0,
     };
 }
@@ -192,11 +192,13 @@ _test_l3cfg_signal_notify(NML3Cfg                    *l3cfg,
             nm_assert(NM_IS_L3_CONFIG_DATA(ti->l3cd));
             nm_assert(ti->tag);
         }
-    } else if (notify_data->notify_type == NM_L3_CONFIG_NOTIFY_TYPE_L3CD_CHANGED) {
-        g_assert(!notify_data->l3cd_changed.l3cd_old
-                 || NM_IS_L3_CONFIG_DATA(notify_data->l3cd_changed.l3cd_old));
-        g_assert(!notify_data->l3cd_changed.l3cd_new
-                 || NM_IS_L3_CONFIG_DATA(notify_data->l3cd_changed.l3cd_new));
+    } else if (NM_IN_SET(notify_data->notify_type,
+                         NM_L3_CONFIG_NOTIFY_TYPE_PRE_COMMIT,
+                         NM_L3_CONFIG_NOTIFY_TYPE_POST_COMMIT)) {
+        g_assert(!notify_data->commit.l3cd_old
+                 || NM_IS_L3_CONFIG_DATA(notify_data->commit.l3cd_old));
+        g_assert(!notify_data->commit.l3cd_new
+                 || NM_IS_L3_CONFIG_DATA(notify_data->commit.l3cd_new));
         return;
     }