From afbc2571a13d043854708391b74e3be5f3035d1c Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 29 Oct 2014 10:18:31 +0100 Subject: 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. --- libnm/tests/test-nm-client.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libnm/tests') 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])) -- cgit v1.2.1