summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-01-27 21:41:43 +0100
committerThomas Haller <thaller@redhat.com>2022-01-28 11:01:53 +0100
commit125b1f9a9a934a578af01ffd98eaf68e92c5cb5a (patch)
tree4288b3a97ffc978d4ba6e31562994c79df92316e
parent8eef82209343a96c92af027843c4ebfa816217e8 (diff)
downloadNetworkManager-125b1f9a9a934a578af01ffd98eaf68e92c5cb5a.tar.gz
libnm/tests: enable check for dangling pointer in test_activate_virtual()
-rw-r--r--src/libnm-client-impl/tests/test-nm-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnm-client-impl/tests/test-nm-client.c b/src/libnm-client-impl/tests/test-nm-client.c
index 4841c96865..a43e98cd18 100644
--- a/src/libnm-client-impl/tests/test-nm-client.c
+++ b/src/libnm-client-impl/tests/test-nm-client.c
@@ -812,7 +812,7 @@ _dev_eth0_1_state_changed_cb(NMDevice *device,
g_assert(arr);
g_assert_cmpint(arr->len, ==, 0);
- // g_assert(!nm_device_get_active_connection(device));
+ g_assert(!nm_device_get_active_connection(device));
}
static void
@@ -921,7 +921,7 @@ test_activate_virtual(void)
g_assert(arr);
g_assert_cmpint(arr->len, ==, 0);
- // g_assert(!nm_device_get_active_connection(dev_eth0_1));
+ g_assert(!nm_device_get_active_connection(dev_eth0_1));
nm_clear_g_signal_handler(dev_eth0_1, &sig_id);