tests: Don't call visit_end_struct() after visit_start_struct() fails
commitcdaec3808e756fee3c4e17d0168ec6429eff0dbc
authorMarkus Armbruster <armbru@redhat.com>
Wed, 7 May 2014 07:53:53 +0000 (7 09:53 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 15 May 2014 18:00:46 +0000 (15 14:00 -0400)
tree718af89969e579d18befe4b4c906f3ff9385176a
parent2ddb16a95f7d4edab4022ef4707d926c0c28db8d
tests: Don't call visit_end_struct() after visit_start_struct() fails

When visit_start_struct() fails, visit_end_struct() must not be
called.  Three out of four visit_type_TestStruct() call it anyway.  As
far as I can tell, visit_start_struct() doesn't actually fail there.
Fix them anyway.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
tests/test-qmp-input-strict.c
tests/test-qmp-output-visitor.c
tests/test-visitor-serialization.c