Searched refs:pt_copy (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/tests/unit/ |
H A D | test-visitor-serialization.c | 298 PrimitiveType *pt_copy = g_malloc0(sizeof(*pt_copy)); in test_primitives() local 301 pt_copy->type = pt->type; in test_primitives() 303 ops->deserialize((void **)&pt_copy, serialize_data, visit_primitive_type, in test_primitives() 306 g_assert(pt_copy != NULL); in test_primitives() 309 g_assert_cmpstr(pt->value.string, ==, pt_copy->value.string); in test_primitives() 310 g_free((char *)pt_copy->value.string); in test_primitives() 316 g_assert_cmpfloat(pt->value.number, ==, pt_copy->value.number); in test_primitives() 319 g_assert_cmpint(pt->value.integer, ==, pt_copy->value.integer); 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() [all …]
|