Lines Matching refs:igt_assert
86 igt_assert(errno == 0); in test_correct()
91 igt_assert(ptr1 != MAP_FAILED); in test_correct()
92 igt_assert(ptr2 != MAP_FAILED); in test_correct()
93 igt_assert(memcmp(ptr1, ptr2, BO_SIZE) == 0); in test_correct()
96 igt_assert(memcmp(ptr2, pattern, sizeof(pattern)) == 0); in test_correct()
115 igt_assert(errno == 0); in test_map_unmap()
118 igt_assert(ptr != MAP_FAILED); in test_map_unmap()
119 igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); in test_map_unmap()
124 igt_assert(ptr != MAP_FAILED); in test_map_unmap()
125 igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); in test_map_unmap()
144 igt_assert(errno == 0); in test_reprime()
147 igt_assert(ptr != MAP_FAILED); in test_reprime()
148 igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); in test_reprime()
151 igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); in test_reprime()
156 igt_assert(ptr != MAP_FAILED); in test_reprime()
157 igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); in test_reprime()
176 igt_assert(errno == 0); in test_forked()
180 igt_assert(ptr != MAP_FAILED); in test_forked()
181 igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); in test_forked()
207 igt_assert(ptr != MAP_FAILED); in test_correct_cpu_write()
213 igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); in test_correct_cpu_write()
237 igt_assert(ptr != MAP_FAILED); in test_forked_cpu_write()
240 igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); in test_forked_cpu_write()
260 igt_assert(errno == 0); in test_refcounting()
265 igt_assert(ptr != MAP_FAILED); in test_refcounting()
266 igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); in test_refcounting()
283 igt_assert(errno == 0); in test_dup()
286 igt_assert(ptr != MAP_FAILED); in test_dup()
287 igt_assert(memcmp(ptr, pattern, sizeof(pattern)) == 0); in test_dup()
316 igt_assert(posix_memalign(&ptr, 4096, 4096) == 0); in has_userptr()
345 igt_assert(ret == EINVAL || ret == ENODEV); in test_userptr()
355 igt_assert(ptr == MAP_FAILED && errno == ENODEV); in test_userptr()
383 igt_assert(dma_buf_fd == -1 && errno == ENOENT); in test_errors()
390 igt_assert(errno == 0); in test_errors()
393 igt_assert(ptr == MAP_FAILED && errno == EBADF); in test_errors()
401 igt_assert(errno == 0); in test_errors()
403 igt_assert(ptr == MAP_FAILED && errno == EINVAL); in test_errors()
411 igt_assert(errno == 0); in test_errors()
413 igt_assert(ptr == MAP_FAILED && errno == EINVAL); in test_errors()
457 igt_assert(errno == 0); in test_aperture_limit()
459 igt_assert(ptr1 != MAP_FAILED); in test_aperture_limit()
460 igt_assert(memcmp(ptr1, pattern, sizeof(pattern)) == 0); in test_aperture_limit()
465 igt_assert(errno == 0); in test_aperture_limit()
467 igt_assert(ptr2 != MAP_FAILED); in test_aperture_limit()
468 igt_assert(memcmp(ptr2, pattern, sizeof(pattern)) == 0); in test_aperture_limit()
470 igt_assert(memcmp(ptr1, ptr2, BO_SIZE) == 0); in test_aperture_limit()