bus dispatch tests: treat impossible message_kind as GOT_SOMETHING_ELSE
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 17 Jan 2017 20:18:47 +0000 (20:18 +0000)
committerSimon McVittie <smcv@collabora.com>
Fri, 7 Apr 2017 11:06:02 +0000 (12:06 +0100)
commit90a1bbecf26ef640010d7f196e1c826b97bea700
treefaa73432c49b949c89a3be19b6fe62d2f795e5c7
parenteb56619aedc667c0d10b2e9630802c24c1a617a3
bus dispatch tests: treat impossible message_kind as GOT_SOMETHING_ELSE

check_got_service_info() can't actually return an invalid
GotServiceInfo, but if it somehow does, we want to fail the test.
GOT_SOMETHING_ELSE already has that effect, and a similar meaning.

Based on a patch from Thomas Zimmermann.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191
bus/dispatch.c