Lines Matching refs:ASSERT_EQ

36   ASSERT_EQ(10, writev(tf.fd, ios, 2));  in TEST()
38 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in TEST()
43 ASSERT_EQ(10, readv(tf.fd, ios, 2)); in TEST()
56 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 5)); in TestPreadVPwriteV()
57 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_CUR)); in TestPreadVPwriteV()
60 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 0)); in TestPreadVPwriteV()
61 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_CUR)); in TestPreadVPwriteV()
63 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 5)); in TestPreadVPwriteV()
65 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 0)); in TestPreadVPwriteV()
84 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 5, 0)) << strerror(errno); in TestPreadV2PwriteV2()
85 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_CUR)); in TestPreadV2PwriteV2()
88 ASSERT_EQ(5, write_fn(tf.fd, ios, 1, 0, 0)) << strerror(errno); in TestPreadV2PwriteV2()
89 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_CUR)); in TestPreadV2PwriteV2()
91 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 5, 0)) << strerror(errno); in TestPreadV2PwriteV2()
93 ASSERT_EQ(5, read_fn(tf.fd, ios, 1, 0, 0)) << strerror(errno); in TestPreadV2PwriteV2()
114 ASSERT_EQ(0, process_vm_readv(0, nullptr, 0, nullptr, 0, 0)); in TEST()
121 ASSERT_EQ(ssize_t(sizeof src), process_vm_readv(getpid(), &local, 1, &remote, 1, 0)); in TEST()
123 ASSERT_EQ('T', dst[0]); in TEST()
124 ASSERT_EQ(0, memcmp(src, dst, sizeof src)); in TEST()
129 ASSERT_EQ(-1, process_vm_readv(getpid(), &local, 1, &remote, 1, 0)); in TEST()
134 ASSERT_EQ(0, process_vm_writev(0, nullptr, 0, nullptr, 0, 0)); in TEST()
141 ASSERT_EQ(ssize_t(sizeof src), process_vm_writev(getpid(), &local, 1, &remote, 1, 0)); in TEST()
143 ASSERT_EQ('T', dst[0]); in TEST()
144 ASSERT_EQ(0, memcmp(src, dst, sizeof src)); in TEST()
149 ASSERT_EQ(-1, process_vm_writev(getpid(), &local, 1, &remote, 1, 0)); in TEST()