diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-12-14 18:53:20 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-18 11:26:27 -0600 |
commit | 42e8c52233af5e31b64a238fb75874cac7f40f7f (patch) | |
tree | 32cbacc1ba3a98d50614aac0a976fc53d411378d /check-qdict.c | |
parent | d42d75d7aece1ab5734f538452a4633da8caf8b0 (diff) | |
download | qemu-42e8c52233af5e31b64a238fb75874cac7f40f7f.tar.gz qemu-42e8c52233af5e31b64a238fb75874cac7f40f7f.tar.bz2 qemu-42e8c52233af5e31b64a238fb75874cac7f40f7f.zip |
QDict: Fix size update
Key replacement should not update the dictionary's size.
This commit also adds a test for the bug.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'check-qdict.c')
-rw-r--r-- | check-qdict.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/check-qdict.c b/check-qdict.c index c37d448227..f2b4826560 100644 --- a/check-qdict.c +++ b/check-qdict.c @@ -205,6 +205,8 @@ START_TEST(qdict_put_exists_test) value = qdict_get_int(tests_dict, key); fail_unless(value == 2); + + fail_unless(qdict_size(tests_dict) == 1); } END_TEST |