test: assert that the signal connection succeeds properly
authorLubomir Rintel <lkundrak@v3.sk>
Fri, 12 Feb 2016 14:39:31 +0000 (15:39 +0100)
committerLubomir 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

index 09a57f8..6746853 100644 (file)
@@ -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;
 }