tests: qdev_prop_check_globals() doesn't return "all_used"
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 4 Dec 2018 14:20:05 +0000 (18:20 +0400)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 11 Dec 2018 17:45:22 +0000 (15:45 -0200)
commitef24052386d4a3c9cf10016cdf0f72b8a90728ae
tree6379360880c9243ec2d691fb62f83ba909078c38
parent112394af1ac21ee00c1bb9c487aca821434583ac
tests: qdev_prop_check_globals() doesn't return "all_used"

Instead, it returns 1 if an error was detected, which is the case for:

/qdev/properties/dynamic/global/subprocess:
warning: global dynamic-prop-type-bad.prop3 has invalid class name
warning: global nohotplug-type.prop5=105 not used
warning: global nondevice-type.prop6 has invalid class name

Clarify the function return value.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20181204142023.15982-2-marcandre.lureau@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
tests/test-qdev-global-props.c