From ace8d96bedb8134a0a731d36aead45231a5e67aa Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 12 Feb 2016 15:39:31 +0100 Subject: [PATCH] test: assert that the signal connection succeeds properly 0 is not success and negative can not happen, as Coverity points out. --- src/platform/tests/test-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }