Lines Matching refs:backing

373   char *backing = xmalloc (SIZE + 2);  in test_misaligned()  local
374 backing[0] = ~pad; in test_misaligned()
375 backing[SIZE + 1] = pad; in test_misaligned()
376 struct alloc_buffer refbuf = alloc_buffer_create (backing + 1, SIZE); in test_misaligned()
432 TEST_VERIFY (backing[0] == (char) ~pad); in test_misaligned()
433 TEST_VERIFY (backing[SIZE + 1] == pad); in test_misaligned()
434 free (backing); in test_misaligned()
531 char backing[4]; in test_copy_bytes() local
533 memset (backing, '@', sizeof (backing)); in test_copy_bytes()
534 struct alloc_buffer buf = alloc_buffer_create (backing, sizeof (backing)); in test_copy_bytes()
538 TEST_VERIFY (memcmp (backing, "1@@@", 4) == 0); in test_copy_bytes()
541 memset (backing, '@', sizeof (backing)); in test_copy_bytes()
542 struct alloc_buffer buf = alloc_buffer_create (backing, sizeof (backing)); in test_copy_bytes()
546 TEST_VERIFY (memcmp (backing, "12\0@", 4) == 0); in test_copy_bytes()
549 memset (backing, '@', sizeof (backing)); in test_copy_bytes()
550 struct alloc_buffer buf = alloc_buffer_create (backing, sizeof (backing)); in test_copy_bytes()
554 TEST_VERIFY (memcmp (backing, "1234", 4) == 0); in test_copy_bytes()
557 memset (backing, '@', sizeof (backing)); in test_copy_bytes()
558 struct alloc_buffer buf = alloc_buffer_create (backing, sizeof (backing)); in test_copy_bytes()
561 TEST_VERIFY (memcmp (backing, "@@@@", 4) == 0); in test_copy_bytes()
564 memset (backing, '@', sizeof (backing)); in test_copy_bytes()
565 struct alloc_buffer buf = alloc_buffer_create (backing, sizeof (backing)); in test_copy_bytes()
568 TEST_VERIFY (memcmp (backing, "@@@@", 4) == 0); in test_copy_bytes()
575 char backing[4]; in test_copy_string() local
577 memset (backing, '@', sizeof (backing)); in test_copy_string()
578 struct alloc_buffer buf = alloc_buffer_create (backing, sizeof (backing)); in test_copy_string()
580 TEST_VERIFY (p == backing); in test_copy_string()
584 TEST_VERIFY (memcmp (backing, "\0@@@", 4) == 0); in test_copy_string()
587 memset (backing, '@', sizeof (backing)); in test_copy_string()
588 struct alloc_buffer buf = alloc_buffer_create (backing, sizeof (backing)); in test_copy_string()
590 TEST_VERIFY (p == backing); in test_copy_string()
594 TEST_VERIFY (memcmp (backing, "1\0@@", 4) == 0); in test_copy_string()
597 memset (backing, '@', sizeof (backing)); in test_copy_string()
598 struct alloc_buffer buf = alloc_buffer_create (backing, sizeof (backing)); in test_copy_string()
600 TEST_VERIFY (p == backing); in test_copy_string()
604 TEST_VERIFY (memcmp (backing, "12\0@", 4) == 0); in test_copy_string()
607 memset (backing, '@', sizeof (backing)); in test_copy_string()
608 struct alloc_buffer buf = alloc_buffer_create (backing, sizeof (backing)); in test_copy_string()
610 TEST_VERIFY (p == backing); in test_copy_string()
614 TEST_VERIFY (memcmp (backing, "123", 4) == 0); in test_copy_string()
617 memset (backing, '@', sizeof (backing)); in test_copy_string()
618 struct alloc_buffer buf = alloc_buffer_create (backing, sizeof (backing)); in test_copy_string()
621 TEST_VERIFY (memcmp (backing, "@@@@", 4) == 0); in test_copy_string()
624 memset (backing, '@', sizeof (backing)); in test_copy_string()
625 struct alloc_buffer buf = alloc_buffer_create (backing, sizeof (backing)); in test_copy_string()
628 TEST_VERIFY (memcmp (backing, "@@@@", 4) == 0); in test_copy_string()