diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2014-12-12 22:11:48 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2014-12-15 16:25:27 +0100 |
commit | ce6323d4dfb6a28ac3cc88010fe28c07e58cba6b (patch) | |
tree | dc49320a8288db1daf12c241bfdaf7d81d5ecc4e /libnm | |
parent | 405d198e7ce40a118479dc57b731fe34cf5b62d3 (diff) | |
download | NetworkManager-ce6323d4dfb6a28ac3cc88010fe28c07e58cba6b.tar.gz |
tests: mute coverity INFINITE_LOOP error
Error: INFINITE_LOOP (CWE-835): [#def17]
NetworkManager-0.9.11.0/libnm/tests/test-nm-client.c:93: loop_top: Top of the loop.
NetworkManager-0.9.11.0/libnm/tests/test-nm-client.c:94: loop_bottom: Bottom of the loop.
NetworkManager-0.9.11.0/libnm/tests/test-nm-client.c:93: loop_condition: If "notified" is initially true then it will remain true.
Error: INFINITE_LOOP (CWE-835): [#def18]
NetworkManager-0.9.11.0/libnm/tests/test-nm-client.c:191: loop_top: Top of the loop.
NetworkManager-0.9.11.0/libnm/tests/test-nm-client.c:192: loop_bottom: Bottom of the loop.
NetworkManager-0.9.11.0/libnm/tests/test-nm-client.c:191: loop_condition: If "result & NOTIFY_MASK" is initially true then it will remain true.
NetworkManager-0.9.11.0/libnm/tests/test-nm-client.c:191: loop_condition: If "result & SIGNAL_MASK" is initially true then it will remain true.
Diffstat (limited to 'libnm')
-rw-r--r-- | libnm/tests/test-nm-client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm/tests/test-nm-client.c b/libnm/tests/test-nm-client.c index 48b16b4690..3541c741e1 100644 --- a/libnm/tests/test-nm-client.c +++ b/libnm/tests/test-nm-client.c @@ -90,6 +90,7 @@ test_device_added (void) /* Tell the test service to add a new device */ nm_test_service_add_device (sinfo, client, "AddWiredDevice", "eth0"); + /* coverity[loop_condition] */ while (!notified) g_main_context_iteration (NULL, TRUE); @@ -188,6 +189,7 @@ test_device_added_signal_after_init (void) /* Ensure the 'device-added' signal doesn't show up before * the 'Devices' property change notification */ + /* coverity[loop_condition] */ while (!(result & SIGNAL_MASK) && !(result & NOTIFY_MASK)) g_main_context_iteration (NULL, TRUE); |