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.
This commit is contained in:
Lubomir Rintel
2014-10-29 10:18:31 +01:00
parent 4496b69e47
commit afbc2571a1

View File

@@ -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]))