Lines Matching full:should
30 "read on a guest_mem fd should fail"); in test_file_read_write()
32 "write on a guest_mem fd should fail"); in test_file_read_write()
34 "pread on a guest_mem fd should fail"); in test_file_read_write()
36 "pwrite on a guest_mem fd should fail"); in test_file_read_write()
53 TEST_ASSERT(!ret, "fstat should succeed"); in test_file_size()
63 TEST_ASSERT(!ret, "fallocate with aligned offset and size should succeed"); in test_fallocate()
67 TEST_ASSERT(ret, "fallocate with unaligned offset should fail"); in test_fallocate()
70 TEST_ASSERT(ret, "fallocate beginning at total_size should fail"); in test_fallocate()
73 TEST_ASSERT(ret, "fallocate beginning after total_size should fail"); in test_fallocate()
77 TEST_ASSERT(!ret, "fallocate(PUNCH_HOLE) at total_size should succeed"); in test_fallocate()
81 TEST_ASSERT(!ret, "fallocate(PUNCH_HOLE) after total_size should succeed"); in test_fallocate()
85 TEST_ASSERT(ret, "fallocate with unaligned size should fail"); in test_fallocate()
89 TEST_ASSERT(!ret, "fallocate(PUNCH_HOLE) with aligned offset and size should succeed"); in test_fallocate()
92 TEST_ASSERT(!ret, "fallocate to restore punched hole should succeed"); in test_fallocate()
120 "PUNCH_HOLE with !PAGE_SIZE offset (%lx) and/or length (%lx) should fail", in test_invalid_punch_hole()
135 "guest_memfd() with non-page-aligned page size '0x%lx' should fail with EINVAL", in test_create_guest_memfd_invalid()
142 "guest_memfd() with flag '0x%lx' should fail with EINVAL", in test_create_guest_memfd_invalid()
153 TEST_ASSERT(fd1 != -1, "memfd creation should succeed"); in test_create_guest_memfd_multiple()
156 TEST_ASSERT(ret != -1, "memfd fstat should succeed"); in test_create_guest_memfd_multiple()
157 TEST_ASSERT(st1.st_size == 4096, "memfd st_size should match requested size"); in test_create_guest_memfd_multiple()
160 TEST_ASSERT(fd2 != -1, "memfd creation should succeed"); in test_create_guest_memfd_multiple()
163 TEST_ASSERT(ret != -1, "memfd fstat should succeed"); in test_create_guest_memfd_multiple()
164 TEST_ASSERT(st2.st_size == 8192, "second memfd st_size should match requested size"); in test_create_guest_memfd_multiple()
167 TEST_ASSERT(ret != -1, "memfd fstat should succeed"); in test_create_guest_memfd_multiple()
168 TEST_ASSERT(st1.st_size == 4096, "first memfd st_size should still match requested size"); in test_create_guest_memfd_multiple()
169 TEST_ASSERT(st1.st_ino != st2.st_ino, "different memfd should have different inode numbers"); in test_create_guest_memfd_multiple()