Lines Matching full:should
28 "read on a guest_mem fd should fail"); in test_file_read_write()
30 "write on a guest_mem fd should fail"); in test_file_read_write()
32 "pread on a guest_mem fd should fail"); in test_file_read_write()
34 "pwrite on a guest_mem fd should fail"); in test_file_read_write()
51 TEST_ASSERT(!ret, "fstat should succeed"); in test_file_size()
61 TEST_ASSERT(!ret, "fallocate with aligned offset and size should succeed"); in test_fallocate()
65 TEST_ASSERT(ret, "fallocate with unaligned offset should fail"); in test_fallocate()
68 TEST_ASSERT(ret, "fallocate beginning at total_size should fail"); in test_fallocate()
71 TEST_ASSERT(ret, "fallocate beginning after total_size should fail"); in test_fallocate()
75 TEST_ASSERT(!ret, "fallocate(PUNCH_HOLE) at total_size should succeed"); in test_fallocate()
79 TEST_ASSERT(!ret, "fallocate(PUNCH_HOLE) after total_size should succeed"); in test_fallocate()
83 TEST_ASSERT(ret, "fallocate with unaligned size should fail"); in test_fallocate()
87 TEST_ASSERT(!ret, "fallocate(PUNCH_HOLE) with aligned offset and size should succeed"); in test_fallocate()
90 TEST_ASSERT(!ret, "fallocate to restore punched hole should succeed"); in test_fallocate()
118 "PUNCH_HOLE with !PAGE_SIZE offset (%lx) and/or length (%lx) should fail", in test_invalid_punch_hole()
133 "guest_memfd() with non-page-aligned page size '0x%lx' should fail with EINVAL", in test_create_guest_memfd_invalid()
140 "guest_memfd() with flag '0x%lx' should fail with EINVAL", in test_create_guest_memfd_invalid()
151 TEST_ASSERT(fd1 != -1, "memfd creation should succeed"); in test_create_guest_memfd_multiple()
154 TEST_ASSERT(ret != -1, "memfd fstat should succeed"); in test_create_guest_memfd_multiple()
155 TEST_ASSERT(st1.st_size == 4096, "memfd st_size should match requested size"); in test_create_guest_memfd_multiple()
158 TEST_ASSERT(fd2 != -1, "memfd creation should succeed"); in test_create_guest_memfd_multiple()
161 TEST_ASSERT(ret != -1, "memfd fstat should succeed"); in test_create_guest_memfd_multiple()
162 TEST_ASSERT(st2.st_size == 8192, "second memfd st_size should match requested size"); in test_create_guest_memfd_multiple()
165 TEST_ASSERT(ret != -1, "memfd fstat should succeed"); in test_create_guest_memfd_multiple()
166 TEST_ASSERT(st1.st_size == 4096, "first memfd st_size should still match requested size"); in test_create_guest_memfd_multiple()
167 TEST_ASSERT(st1.st_ino != st2.st_ino, "different memfd should have different inode numbers"); in test_create_guest_memfd_multiple()