]> git.proxmox.com Git - mirror_qemu.git/commit
check-qdict: Test termination of qdict_array_split()
authorMax Reitz <mreitz@redhat.com>
Fri, 21 Feb 2014 20:05:13 +0000 (21:05 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 Feb 2014 21:18:26 +0000 (22:18 +0100)
commit64757582dafca9b0b3846677e368dd40bcd68b43
treefd732abbe9bdf75341ef5d9db7e8ef2b4bd90b96
parent7841c768846dcfa5a162ff46a8e98429aa0d2238
check-qdict: Test termination of qdict_array_split()

qdict_array_split() should terminate if it encounters both an entry with
a key of "%u" and entries with keys prefixed "%u." for the same index.

This patch adds a test for this case.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/check-qdict.c