Lines Matching refs:ASSERT_EQ
157 ASSERT_EQ(ret, 0); in FIXTURE_TEARDOWN()
165 ASSERT_EQ(ret, 0); in FIXTURE_TEARDOWN()
169 ASSERT_EQ(ret, 0); in FIXTURE_TEARDOWN()
325 ASSERT_EQ(ret, 0); in TEST_F()
329 ASSERT_EQ(val, 0); in TEST_F()
333 ASSERT_EQ(ret, 0); in TEST_F()
334 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
335 ASSERT_EQ(buffer->faults, 1); in TEST_F()
340 ASSERT_EQ(ptr[i], 0); in TEST_F()
342 ASSERT_EQ(ptr[i], i); in TEST_F()
388 ASSERT_EQ(ret, 0); in TEST_F()
392 ASSERT_EQ(ret, -EFAULT); in TEST_F()
396 ASSERT_EQ(ret, 0); in TEST_F()
398 ASSERT_EQ(ptr[i], i); in TEST_F()
402 ASSERT_EQ(ptr[i], -i); in TEST_F()
443 ASSERT_EQ(ret, 0); in TEST_F()
444 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
445 ASSERT_EQ(buffer->faults, 1); in TEST_F()
449 ASSERT_EQ(ptr[i], i); in TEST_F()
487 ASSERT_EQ(ret, 0); in TEST_F()
488 ASSERT_EQ(buffer->cpages, 1); in TEST_F()
489 ASSERT_EQ(buffer->faults, 1); in TEST_F()
497 ASSERT_EQ(ret, -EPERM); in TEST_F()
501 ASSERT_EQ(ptr[i], 0); in TEST_F()
505 ASSERT_EQ(ret, 0); in TEST_F()
509 ASSERT_EQ(ret, 0); in TEST_F()
510 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
511 ASSERT_EQ(buffer->faults, 1); in TEST_F()
515 ASSERT_EQ(ptr[i], i); in TEST_F()
563 ASSERT_EQ(pid, 0); in TEST_F()
566 ASSERT_EQ(WIFEXITED(ret), 1); in TEST_F()
570 ASSERT_EQ(ptr[i], i); in TEST_F()
576 ASSERT_EQ(ptr[i], i); in TEST_F()
578 ASSERT_EQ(ptr[i], -i); in TEST_F()
586 ASSERT_EQ(ret, 0); in TEST_F()
587 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
588 ASSERT_EQ(buffer->faults, 1); in TEST_F()
592 ASSERT_EQ(ptr[i], -i); in TEST_F()
641 ASSERT_EQ(pid, 0); in TEST_F()
644 ASSERT_EQ(WIFEXITED(ret), 1); in TEST_F()
648 ASSERT_EQ(ptr[i], -i); in TEST_F()
654 ASSERT_EQ(ptr[i], i); in TEST_F()
656 ASSERT_EQ(ptr[i], -i); in TEST_F()
664 ASSERT_EQ(ret, 0); in TEST_F()
665 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
666 ASSERT_EQ(buffer->faults, 1); in TEST_F()
670 ASSERT_EQ(ptr[i], -i); in TEST_F()
710 ASSERT_EQ(ret, 0); in TEST_F()
720 ASSERT_EQ(ret, 0); in TEST_F()
721 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
722 ASSERT_EQ(buffer->faults, 1); in TEST_F()
726 ASSERT_EQ(ptr[i], i); in TEST_F()
824 ASSERT_EQ(ret, 0); in TEST_F()
825 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
826 ASSERT_EQ(buffer->faults, 1); in TEST_F()
830 ASSERT_EQ(ptr[i], i); in TEST_F()
870 ASSERT_EQ(len, size); in TEST_F()
881 ASSERT_EQ(ret, 0); in TEST_F()
882 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
883 ASSERT_EQ(buffer->faults, 1); in TEST_F()
887 ASSERT_EQ(ptr[i], i); in TEST_F()
933 ASSERT_EQ(ret, 0); in TEST_F()
934 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
935 ASSERT_EQ(buffer->faults, 1); in TEST_F()
939 ASSERT_EQ(ptr[i], i); in TEST_F()
943 ASSERT_EQ(len, size); in TEST_F()
945 ASSERT_EQ(ptr[i], i); in TEST_F()
986 ASSERT_EQ(ret, 0); in TEST_F()
987 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
991 ASSERT_EQ(ptr[i], i); in TEST_F()
1034 ASSERT_EQ(ret, 0); in TEST_F()
1035 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1039 ASSERT_EQ(ptr[i], i); in TEST_F()
1043 ASSERT_EQ(ptr[i], i); in TEST_F()
1047 ASSERT_EQ(ret, 0); in TEST_F()
1048 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1052 ASSERT_EQ(ptr[i], i); in TEST_F()
1088 ASSERT_EQ(ret, 0); in TEST_F()
1089 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1093 ASSERT_EQ(ptr[i], i); in TEST_F()
1097 ASSERT_EQ(ret, 0); in TEST_F()
1101 ASSERT_EQ(ptr[i], i); in TEST_F()
1136 ASSERT_EQ(ret, -ENOENT); in TEST_F()
1175 ASSERT_EQ(ret, -EINVAL); in TEST_F()
1179 ASSERT_EQ(ret, 0); in TEST_F()
1183 ASSERT_EQ(ret, -EINVAL); in TEST_F()
1188 ASSERT_EQ(ret, 0); in TEST_F()
1191 ASSERT_EQ(val, 3); in TEST_F()
1196 ASSERT_EQ(ret, 0); in TEST_F()
1201 ASSERT_EQ(ret, 0); in TEST_F()
1206 ASSERT_EQ(ret, 0); in TEST_F()
1215 ASSERT_EQ(ret, 0); in TEST_F()
1216 ASSERT_EQ(buffer->cpages, 4); in TEST_F()
1221 ASSERT_EQ(ret, -ENOENT); in TEST_F()
1271 ASSERT_EQ(ret, 0); in TEST_F()
1272 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1276 ASSERT_EQ(ptr[i], i); in TEST_F()
1281 ASSERT_EQ(ret, 0); in TEST_F()
1282 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1286 ASSERT_EQ(ptr[i], i); in TEST_F()
1331 ASSERT_EQ(ret, 0); in TEST_F()
1332 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1333 ASSERT_EQ(buffer->faults, 1); in TEST_F()
1337 ASSERT_EQ(ptr[i], i + c); in TEST_F()
1395 ASSERT_EQ(rc, 0); in TEST_F()
1401 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1402 ASSERT_EQ(buffer->faults, 1); in TEST_F()
1408 ASSERT_EQ(ptr[i], i + c); in TEST_F()
1448 ASSERT_EQ(ret, 0); in TEST_F()
1449 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1453 ASSERT_EQ(m[0], HMM_DMIRROR_PROT_READ); in TEST_F()
1493 ASSERT_EQ(ret, 0); in TEST_F()
1498 ASSERT_EQ(ret, 0); in TEST_F()
1501 ASSERT_EQ(val, 3); in TEST_F()
1506 ASSERT_EQ(ret, 0); in TEST_F()
1511 ASSERT_EQ(ret, 0); in TEST_F()
1516 ASSERT_EQ(ret, 0); in TEST_F()
1523 ASSERT_EQ(ret, 0); in TEST_F()
1524 ASSERT_EQ(buffer->cpages, 1); in TEST_F()
1529 ASSERT_EQ(ret, 0); in TEST_F()
1530 ASSERT_EQ(buffer->cpages, 1); in TEST_F()
1535 ASSERT_EQ(ret, 0); in TEST_F()
1536 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1540 ASSERT_EQ(m[0], HMM_DMIRROR_PROT_ERROR); in TEST_F()
1541 ASSERT_EQ(m[1], HMM_DMIRROR_PROT_ERROR); in TEST_F()
1542 ASSERT_EQ(m[2], HMM_DMIRROR_PROT_ZERO | HMM_DMIRROR_PROT_READ); in TEST_F()
1543 ASSERT_EQ(m[3], HMM_DMIRROR_PROT_READ); in TEST_F()
1544 ASSERT_EQ(m[4], HMM_DMIRROR_PROT_WRITE); in TEST_F()
1546 ASSERT_EQ(m[5], HMM_DMIRROR_PROT_DEV_PRIVATE_LOCAL | in TEST_F()
1548 ASSERT_EQ(m[6], HMM_DMIRROR_PROT_NONE); in TEST_F()
1550 ASSERT_EQ(m[5], HMM_DMIRROR_PROT_DEV_COHERENT_LOCAL | in TEST_F()
1552 ASSERT_EQ(m[6], HMM_DMIRROR_PROT_DEV_COHERENT_REMOTE | in TEST_F()
1606 ASSERT_EQ(ret, 0); in TEST_F()
1607 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1612 ASSERT_EQ(m[i], HMM_DMIRROR_PROT_WRITE | in TEST_F()
1617 ASSERT_EQ(ret, 0); in TEST_F()
1621 ASSERT_EQ(ret, 0); in TEST_F()
1622 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1627 ASSERT_EQ(m[i], HMM_DMIRROR_PROT_READ | in TEST_F()
1671 ASSERT_EQ(ret, 0); in TEST_F()
1675 ASSERT_EQ(ret, 0); in TEST_F()
1676 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1677 ASSERT_EQ(buffer->faults, 1); in TEST_F()
1681 ASSERT_EQ(ptr[i], i); in TEST_F()
1685 ASSERT_EQ(ret, 0); in TEST_F()
1686 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1687 ASSERT_EQ(buffer->faults, 1); in TEST_F()
1691 ASSERT_EQ(ptr[i], i); in TEST_F()
1695 ASSERT_EQ(ret, 0); in TEST_F()
1696 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1699 ASSERT_EQ(ret, 0); in TEST_F()
1700 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1701 ASSERT_EQ(buffer->faults, 1); in TEST_F()
1705 ASSERT_EQ(ptr[i], i); in TEST_F()
1746 ASSERT_EQ(ret, 0); in TEST_F()
1747 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1751 ASSERT_EQ(ptr[i], i); in TEST_F()
1755 ASSERT_EQ(ptr[i]++, i); in TEST_F()
1758 ASSERT_EQ(ptr[i], i+1); in TEST_F()
1762 ASSERT_EQ(ret, 0); in TEST_F()
1800 ASSERT_EQ(ret, 0); in TEST_F()
1801 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1805 ASSERT_EQ(ptr[i], i); in TEST_F()
1808 ASSERT_EQ(ret, 0); in TEST_F()
1812 ASSERT_EQ(ret, -EPERM); in TEST_F()
1853 ASSERT_EQ(ret, 0); in TEST_F()
1854 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1860 ASSERT_EQ(ptr[i]++, i); in TEST_F()
1863 ASSERT_EQ(ptr[i], i+1); in TEST_F()
1931 ASSERT_EQ(ret, 0); in TEST_F()
1932 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1935 ASSERT_EQ(ptr[i], i); in TEST_F()
1937 ASSERT_EQ(gup_test_exec(gup_fd, in TEST_F()
1940 ASSERT_EQ(gup_test_exec(gup_fd, in TEST_F()
1943 ASSERT_EQ(gup_test_exec(gup_fd, in TEST_F()
1946 ASSERT_EQ(gup_test_exec(gup_fd, in TEST_F()
1952 ASSERT_EQ(ret, 0); in TEST_F()
1953 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
1956 ASSERT_EQ(HMM_DMIRROR_PROT_DEV_COHERENT_LOCAL | HMM_DMIRROR_PROT_WRITE, m[0]); in TEST_F()
1957 ASSERT_EQ(HMM_DMIRROR_PROT_DEV_COHERENT_LOCAL | HMM_DMIRROR_PROT_WRITE, m[1]); in TEST_F()
1959 ASSERT_EQ(HMM_DMIRROR_PROT_WRITE, m[0]); in TEST_F()
1960 ASSERT_EQ(HMM_DMIRROR_PROT_WRITE, m[1]); in TEST_F()
1962 ASSERT_EQ(HMM_DMIRROR_PROT_WRITE, m[2]); in TEST_F()
1963 ASSERT_EQ(HMM_DMIRROR_PROT_WRITE, m[3]); in TEST_F()
1969 ASSERT_EQ(ptr[i], i); in TEST_F()
2018 ASSERT_EQ(ret, 0); in TEST_F()
2019 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
2023 ASSERT_EQ(pid, 0); in TEST_F()
2046 ASSERT_EQ(ret, 0); in TEST_F()
2047 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
2050 ASSERT_EQ(HMM_DMIRROR_PROT_WRITE, m[i]); in TEST_F()