gio/tests: Add non-NULL assertions to help static analysis
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 26 Nov 2013 11:18:35 +0000 (11:18 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 27 Nov 2013 10:01:29 +0000 (10:01 +0000)
commitc9ccc2af9157b99651507eb078e6cdd8d31d3bd6
tree58dbbc517922639ca96b92195ba6b20980566e9e
parentfe004445a41d69075fcb542219026d4b8fc343a9
gio/tests: Add non-NULL assertions to help static analysis

These prevent some false positives from the static analyser which are
caused by it not inspecting the invariants of
g_subprocess_communicate[_utf8]_finish() (i.e. that stdout and
stdout_str will always be set unless an error was returned).

They’re also good testing anyway.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=113075
gio/tests/gsubprocess.c