diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2016-02-12 15:39:31 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2016-02-12 15:48:12 +0100 |
commit | ace8d96bedb8134a0a731d36aead45231a5e67aa (patch) | |
tree | 50e0988c0db60361b5daad841333a6bf725184da | |
parent | d9218f607436ed66481a0276d49c464446b696df (diff) | |
download | NetworkManager-ace8d96bedb8134a0a731d36aead45231a5e67aa.tar.gz |
test: assert that the signal connection succeeds properly
0 is not success and negative can not happen, as Coverity points out.
-rw-r--r-- | src/platform/tests/test-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/tests/test-common.c b/src/platform/tests/test-common.c index 09a57f8721..67468539f1 100644 --- a/src/platform/tests/test-common.c +++ b/src/platform/tests/test-common.c @@ -39,7 +39,7 @@ add_signal_full (const char *name, NMPlatformSignalChangeType change_type, GCall data->ifindex = ifindex; data->ifname = ifname; - g_assert (data->handler_id >= 0); + g_assert (data->handler_id > 0); return data; } |