diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-06-07 20:36:00 +0400 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-06-20 14:31:31 +0200 |
commit | 36aeb6094f04bed036c43c5e0eb675ca78bf72fe (patch) | |
tree | 7d9b3f896df89da6c85f71887d4eaa711c3e2579 /tests/check-qdict.c | |
parent | 60390d2dc85ffade8981ca41e02335cb07353a6d (diff) | |
download | qemu-36aeb6094f04bed036c43c5e0eb675ca78bf72fe.zip qemu-36aeb6094f04bed036c43c5e0eb675ca78bf72fe.tar.gz qemu-36aeb6094f04bed036c43c5e0eb675ca78bf72fe.tar.bz2 |
tests: remove /{qnum, qlist, dict}/destroy test
The tests aren't really useful, or already covered by other simple tests.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170607163635.17635-9-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/check-qdict.c')
-rw-r--r-- | tests/check-qdict.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/check-qdict.c b/tests/check-qdict.c index f067c63..5eca1b5 100644 --- a/tests/check-qdict.c +++ b/tests/check-qdict.c @@ -32,8 +32,7 @@ static void qdict_new_test(void) g_assert(qdict->base.refcnt == 1); g_assert(qobject_type(QOBJECT(qdict)) == QTYPE_QDICT); - // destroy doesn't exit yet - g_free(qdict); + QDECREF(qdict); } static void qdict_put_obj_test(void) @@ -53,11 +52,7 @@ static void qdict_put_obj_test(void) qn = qobject_to_qnum(ent->value); g_assert_cmpint(qnum_get_int(qn), ==, num); - // destroy doesn't exit yet - QDECREF(qn); - g_free(ent->key); - g_free(ent); - g_free(qdict); + QDECREF(qdict); } static void qdict_destroy_simple_test(void) |