diff options
author | Markus Armbruster <armbru@redhat.com> | 2013-07-27 17:41:59 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-07-29 10:37:11 -0500 |
commit | 5f3cd2b717c949f3afb502fb4c81193eb18ce6aa (patch) | |
tree | 8e25d6941dca6c5c30c5438305ab00ffeff75d35 /tests | |
parent | 6974ccd542d11ae5fb1e56dd3d753f2de5cc097e (diff) | |
download | qemu-5f3cd2b717c949f3afb502fb4c81193eb18ce6aa.zip qemu-5f3cd2b717c949f3afb502fb4c81193eb18ce6aa.tar.gz qemu-5f3cd2b717c949f3afb502fb4c81193eb18ce6aa.tar.bz2 |
qapi.py: Fix diagnosing non-objects at a schema's top-level
Report syntax error instead of crashing.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1374939721-7876-8-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qapi-schema/non-objects.err | 2 | ||||
-rw-r--r-- | tests/qapi-schema/quoted-structural-chars.err | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/qapi-schema/non-objects.err b/tests/qapi-schema/non-objects.err index 48c849d..a6c2dc2 100644 --- a/tests/qapi-schema/non-objects.err +++ b/tests/qapi-schema/non-objects.err @@ -1 +1 @@ -Crashed: <type 'exceptions.AttributeError'> +<stdin>:1:1: Expected "{" diff --git a/tests/qapi-schema/quoted-structural-chars.err b/tests/qapi-schema/quoted-structural-chars.err index 48c849d..a6c2dc2 100644 --- a/tests/qapi-schema/quoted-structural-chars.err +++ b/tests/qapi-schema/quoted-structural-chars.err @@ -1 +1 @@ -Crashed: <type 'exceptions.AttributeError'> +<stdin>:1:1: Expected "{" |