summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-01-04 16:41:48 +0100
committerThomas Haller <thaller@redhat.com>2016-01-04 17:01:18 +0100
commit4b5352057aebd9f1dc4e3a44a3258f6ce55f0266 (patch)
treeac31b21bd83e7ec697cadc040b74e2332e15887e
parentda1abaa1dbc18bcde9d0b36afac3d1a7cab2a6ed (diff)
downloadNetworkManager-4b5352057aebd9f1dc4e3a44a3258f6ce55f0266.tar.gz
platform/tests: avoid test failure in test_ip6_address_general()
# Start of ipv6 tests # NetworkManager-FATAL-ERROR: NMPlatformSignalAssert: ../../../../../src/platform/tests/test-address.c:154, test_ip6_address_general(): failure to free non-accepted signal: ip6-address-changed-changed ifindex 11 (1 times received)
-rw-r--r--src/platform/tests/test-address.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platform/tests/test-address.c b/src/platform/tests/test-address.c
index 68bf2fd70e..e5ae0aee95 100644
--- a/src/platform/tests/test-address.c
+++ b/src/platform/tests/test-address.c
@@ -150,6 +150,9 @@ test_ip6_address_general (void)
/* Remove address again */
nmtstp_ip6_address_del (EX, ifindex, addr, IP6_PLEN);
+ /* ensure no pending signal. */
+ accept_signals (address_changed, 0, 1);
+
free_signal (address_added);
free_signal (address_changed);
free_signal (address_removed);