Lines Matching refs:t
669 struct test_bitmap_cut *t = &test_cut[i]; in test_bitmap_cut() local
671 memcpy(in, t->in, sizeof(t->in)); in test_bitmap_cut()
673 bitmap_cut(out, in, t->first, t->cut, t->nbits); in test_bitmap_cut()
675 expect_eq_bitmap(t->expected, out, t->nbits); in test_bitmap_cut()
789 const struct test_bitmap_print *t = &test_print[i]; in test_bitmap_print_buf() local
792 n = bitmap_print_bitmask_to_buf(print_buf, t->bitmap, t->nbits, in test_bitmap_print_buf()
794 expect_eq_uint(strlen(t->mask) + 1, n); in test_bitmap_print_buf()
795 expect_eq_str(t->mask, print_buf, n); in test_bitmap_print_buf()
797 n = bitmap_print_list_to_buf(print_buf, t->bitmap, t->nbits, in test_bitmap_print_buf()
799 expect_eq_uint(strlen(t->list) + 1, n); in test_bitmap_print_buf()
800 expect_eq_str(t->list, print_buf, n); in test_bitmap_print_buf()
803 if (strlen(t->list) > PAGE_SIZE) { in test_bitmap_print_buf()
804 n = bitmap_print_list_to_buf(print_buf, t->bitmap, t->nbits, in test_bitmap_print_buf()
806 expect_eq_uint(strlen(t->list) + 1 - PAGE_SIZE, n); in test_bitmap_print_buf()
807 expect_eq_str(t->list + PAGE_SIZE, print_buf, n); in test_bitmap_print_buf()