projects
/
NetworkManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9218f6
)
test: assert that the signal connection succeeds properly
author
Lubomir Rintel
<lkundrak@v3.sk>
Fri, 12 Feb 2016 14:39:31 +0000
(15:39 +0100)
committer
Lubomir Rintel
<lkundrak@v3.sk>
Fri, 12 Feb 2016 14:48:12 +0000
(15:48 +0100)
0 is not success and negative can not happen, as Coverity points out.
src/platform/tests/test-common.c
patch
|
blob
|
history
diff --git
a/src/platform/tests/test-common.c
b/src/platform/tests/test-common.c
index
09a57f8
..
6746853
100644
(file)
--- 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;
}