test: assert that the signal connection succeeds properly

0 is not success and negative can not happen, as Coverity points out.
This commit is contained in:
Lubomir Rintel 2016-02-12 15:39:31 +01:00
parent d9218f6074
commit ace8d96bed

View 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;
}