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
switch (message_kind)
{
case GOT_SOMETHING_ELSE:
+ default:
_dbus_warn ("Unexpected message after ActivateService "
"(should be an error or a service announcement");
goto out;
case GOT_ERROR:
case GOT_SOMETHING_ELSE:
+ default:
_dbus_warn ("Unexpected message after auto activation");
goto out;
}
case GOT_ERROR:
case GOT_SOMETHING_ELSE:
+ default:
_dbus_warn ("Unexpected message after auto activation");
goto out;
}
case GOT_SOMETHING_ELSE:
case GOT_ERROR:
case GOT_SERVICE_DELETED:
+ default:
_dbus_warn ("Unexpected message after ActivateService "
"(should be an error or a service announcement)");
goto out;