summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2012-01-28 14:02:06 +0000
committerOlivier CrĂȘte <olivier.crete@collabora.com>2012-07-31 16:08:54 +0200
commitec267d9d072298100b6b13bafa1fce3440dabe38 (patch)
treeeedd5ca12525fb8acee73bcf7c41a5c474e34d9a /tests
parent9fac4e2b35fccc976cf1d9ed202030beae091e66 (diff)
downloadfarstream-ec267d9d072298100b6b13bafa1fce3440dabe38.tar.gz
tests: Ignore non-running multicast devices
Diffstat (limited to 'tests')
-rw-r--r--tests/check/testutils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/check/testutils.c b/tests/check/testutils.c
index 089b9daf..33ca3f53 100644
--- a/tests/check/testutils.c
+++ b/tests/check/testutils.c
@@ -51,6 +51,9 @@ find_multicast_capable_address (void)
if ((ifa->ifa_flags & IFF_MULTICAST) == 0)
continue;
+ if ((ifa->ifa_flags & IFF_RUNNING) == 0)
+ continue;
+
if (ifa->ifa_addr == NULL || ifa->ifa_addr->sa_family != AF_INET)
continue;