Lines Matching refs:g_assert_cmpint
48 g_assert_cmpint(ftruncate(fd, 0), ==, 0); in open_test_file()
61 g_assert_cmpint((val), ==, 0)
64 g_assert_cmpint((val), !=, 0)
92 g_assert_cmpint(qemu_get_buffer(f, result, size), ==, size); in compare_vmstate()
101 g_assert_cmpint(qemu_file_get_error(f), ==, -EIO); in compare_vmstate()
266 #define FIELD_EQUAL(name) g_assert_cmpint(obj.name, ==, obj_simple.name) in test_simple_primitive()
370 g_assert_cmpint(obj.a, ==, 10); in test_load_v1()
371 g_assert_cmpint(obj.b, ==, 200); in test_load_v1()
372 g_assert_cmpint(obj.c, ==, 30); in test_load_v1()
373 g_assert_cmpint(obj.d, ==, 40); in test_load_v1()
374 g_assert_cmpint(obj.e, ==, 500); in test_load_v1()
375 g_assert_cmpint(obj.f, ==, 600); in test_load_v1()
395 g_assert_cmpint(obj.a, ==, 10); in test_load_v2()
396 g_assert_cmpint(obj.b, ==, 20); in test_load_v2()
397 g_assert_cmpint(obj.c, ==, 30); in test_load_v2()
398 g_assert_cmpint(obj.d, ==, 40); in test_load_v2()
399 g_assert_cmpint(obj.e, ==, 50); in test_load_v2()
400 g_assert_cmpint(obj.f, ==, 60); in test_load_v2()
485 g_assert_cmpint(obj.a, ==, 10); in test_load_noskip()
486 g_assert_cmpint(obj.b, ==, 20); in test_load_noskip()
487 g_assert_cmpint(obj.c, ==, 30); in test_load_noskip()
488 g_assert_cmpint(obj.d, ==, 40); in test_load_noskip()
489 g_assert_cmpint(obj.e, ==, 50); in test_load_noskip()
490 g_assert_cmpint(obj.f, ==, 60); in test_load_noskip()
509 g_assert_cmpint(obj.a, ==, 10); in test_load_skip()
510 g_assert_cmpint(obj.b, ==, 20); in test_load_skip()
511 g_assert_cmpint(obj.c, ==, 300); in test_load_skip()
512 g_assert_cmpint(obj.d, ==, 40); in test_load_skip()
513 g_assert_cmpint(obj.e, ==, 500); in test_load_skip()
514 g_assert_cmpint(obj.f, ==, 60); in test_load_skip()
580 g_assert_cmpint(ar_gt[idx].i, ==, ar[idx].i); in test_arr_ptr_str_no0_load()
613 g_assert_cmpint(ar_gt[idx].i, ==, ar[idx].i); in test_arr_ptr_str_0_load()
617 g_assert_cmpint((uintptr_t)(obj.ar[idx]), ==, 0); in test_arr_ptr_str_0_load()
619 g_assert_cmpint((uintptr_t)(obj.ar[idx]), !=, 0); in test_arr_ptr_str_0_load()
661 g_assert_cmpint(42, ==, ar[idx]); in test_arr_ptr_prim_0_load()
663 g_assert_cmpint(ar_gt[idx], ==, ar[idx]); in test_arr_ptr_prim_0_load()
779 g_assert_cmpint(tgt.i16, ==, obj_q.i16); in test_load_q()
780 g_assert_cmpint(tgt.i32, ==, obj_q.i32); in test_load_q()
781 g_assert_cmpint(eof, ==, QEMU_VM_EOF); in test_load_q()
789 g_assert_cmpint(qele_to->b, ==, qele_from->b); in test_load_q()
790 g_assert_cmpint(qele_to->u8, ==, qele_from->u8); in test_load_q()
798 g_assert_cmpint((uintptr_t) qele_from, ==, (uintptr_t) qlast_from); in test_load_q()
799 g_assert_cmpint((uintptr_t) qele_to, ==, (uintptr_t) qlast_to); in test_load_q()
1133 g_assert_cmpint(orig_domain->id, ==, dest_domain->id); in test_gtree_load_domain()
1134 g_assert_cmpint(eof, ==, QEMU_VM_EOF); in test_gtree_load_domain()
1247 g_assert_cmpint(orig_iommu->id, ==, dest_iommu->id); in test_gtree_load_iommu()
1248 g_assert_cmpint(eof, ==, QEMU_VM_EOF); in test_gtree_load_iommu()
1382 g_assert_cmpint(eof, ==, QEMU_VM_EOF); in test_load_qlist()
1475 g_assert_cmpint(obj.a, ==, 2); /* From top level vmsd */ in test_tmp_struct()
1476 g_assert_cmpint(obj.b, ==, 4); /* from the post_load */ in test_tmp_struct()
1477 g_assert_cmpint(obj.d, ==, 1); /* From top level vmsd */ in test_tmp_struct()
1478 g_assert_cmpint(obj.f, ==, 8); /* From the child->parent */ in test_tmp_struct()