summaryrefslogtreecommitdiff
path: root/libnm
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2014-10-29 10:18:31 +0100
committerLubomir Rintel <lkundrak@v3.sk>2014-10-30 14:39:08 +0100
commitafbc2571a13d043854708391b74e3be5f3035d1c (patch)
tree5eca28bd1242d9edf79b15cc0983b0dc885eb6b6 /libnm
parent4496b69e47eac8e4748fc3e452571b61498916f1 (diff)
downloadNetworkManager-afbc2571a13d043854708391b74e3be5f3035d1c.tar.gz
libnm/tests: Properly wait for devices in /libnm/activate-virtual
Ignore the signal if we're signalled before the second device is available and wait for another one.
Diffstat (limited to 'libnm')
-rw-r--r--libnm/tests/test-nm-client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm/tests/test-nm-client.c b/libnm/tests/test-nm-client.c
index 26ffbec4ac..85d8c7d28f 100644
--- a/libnm/tests/test-nm-client.c
+++ b/libnm/tests/test-nm-client.c
@@ -888,6 +888,8 @@ client_devices_changed_cb (GObject *client,
devices = nm_client_get_devices (NM_CLIENT (client));
g_assert (devices != NULL);
+ if (devices->len < 2)
+ return;
g_assert_cmpint (devices->len, ==, 2);
if (NM_IS_DEVICE_VLAN (devices->pdata[0]))