signals: Add some missing assertions to inline unit tests
authorPhilip Withnall <withnall@endlessm.com>
Thu, 2 Feb 2017 10:28:22 +0000 (10:28 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 13 Feb 2017 14:51:29 +0000 (14:51 +0000)
commit9f9b32dc5cf4e4a05eee73c2f7a238c9f3019899
tree21472a7aa6edb1f9969cf837ac0762d2cece197d
parent2ab6913e7946be7cdf8111b5691c3a4db3dac248
signals: Add some missing assertions to inline unit tests

check_parse() can return NULL on OOM, which we might as well handle
gracefully in the tests with an assertion, rather than an explosion. At
least it will shut Coverity up.

Coverity ID: 54724

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99643
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
bus/signals.c