tests: Cover input visit beyond end of list
commita9416dc62c36079b93b4951c894a0b15e53bb38c
authorMarkus Armbruster <armbru@redhat.com>
Fri, 3 Mar 2017 12:32:46 +0000 (3 13:32 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Sun, 5 Mar 2017 08:14:20 +0000 (5 09:14 +0100)
tree3c5af2b9ea8f6ec2a98b014a3a075d4c0ad47c6a
parenta4a1c70dc759e5b81627e96564f344ab43ea86eb
tests: Cover input visit beyond end of list

When you try to visit beyond the end of a list, the qobject input
visitor crashes, and the string visitor screws returns garbage.  The
generated list visits never go beyond the list end, but manual visits
could.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1488544368-30622-27-git-send-email-armbru@redhat.com>
tests/test-opts-visitor.c
tests/test-qobject-input-visitor.c
tests/test-string-input-visitor.c