Home
last modified time | relevance | path

Searched refs:pt_copy (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/tests/unit/
H A Dtest-visitor-serialization.c298 PrimitiveType *pt_copy = g_malloc0(sizeof(*pt_copy)); in test_primitives() local
301 pt_copy->type = pt->type; in test_primitives()
306 g_assert(pt_copy != NULL); in test_primitives()
310 g_free((char *)pt_copy->value.string); in test_primitives()
322 g_assert_cmpuint(pt->value.u8, ==, pt_copy->value.u8); in test_primitives()
325 g_assert_cmpuint(pt->value.u16, ==, pt_copy->value.u16); in test_primitives()
334 g_assert_cmpint(pt->value.s8, ==, pt_copy->value.s8); in test_primitives()
337 g_assert_cmpint(pt->value.s16, ==, pt_copy->value.s16); in test_primitives()
340 g_assert_cmpint(pt->value.s32, ==, pt_copy->value.s32); in test_primitives()
343 g_assert_cmpint(pt->value.s64, ==, pt_copy->value.s64); in test_primitives()
[all …]