Lines Matching refs:ASSERT_EQ
252 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
253 ASSERT_EQ(0, reg.write_index); in TEST_F()
256 ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
257 ASSERT_EQ(EADDRINUSE, errno); in TEST_F()
261 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
262 ASSERT_EQ(0, reg.write_index); in TEST_F()
267 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
268 ASSERT_EQ(0, reg.write_index); in TEST_F()
273 ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
274 ASSERT_EQ(EADDRINUSE, errno); in TEST_F()
283 ASSERT_EQ(1 << reg.enable_bit, self->check); in TEST_F()
287 ASSERT_EQ(0, self->check); in TEST_F()
290 ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSDEL, "__test_event")); in TEST_F()
291 ASSERT_EQ(EBUSY, errno); in TEST_F()
294 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSUNREG, &unreg)); in TEST_F()
296 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSUNREG, &unreg)); in TEST_F()
298 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSUNREG, &unreg)); in TEST_F()
303 ASSERT_EQ(true, wait_for_delete()); in TEST_F()
329 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
330 ASSERT_EQ(0, reg.write_index); in TEST_F()
331 ASSERT_EQ(0, self->check); in TEST_F()
336 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
337 ASSERT_EQ(ENOENT, errno); in TEST_F()
342 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
343 ASSERT_EQ(EBADF, errno); in TEST_F()
360 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
361 ASSERT_EQ(EINVAL, errno); in TEST_F()
379 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
380 ASSERT_EQ(0, reg.write_index); in TEST_F()
381 ASSERT_EQ(0, self->check); in TEST_F()
388 ASSERT_EQ(1 << reg.enable_bit, self->check); in TEST_F()
418 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
419 ASSERT_EQ(0, reg.write_index); in TEST_F()
429 ASSERT_EQ(0, madvise(anon, l, MADV_DONTNEED)); in TEST_F()
431 ASSERT_EQ(0, munmap(anon, l)); in TEST_F()
448 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
449 ASSERT_EQ(0, reg.write_index); in TEST_F()
450 ASSERT_EQ(0, self->check); in TEST_F()
461 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 1)); in TEST_F()
462 ASSERT_EQ(EINVAL, errno); in TEST_F()
469 ASSERT_EQ(1 << reg.enable_bit, self->check); in TEST_F()
480 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
481 ASSERT_EQ(EFAULT, errno); in TEST_F()
485 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
486 ASSERT_EQ(EFAULT, errno); in TEST_F()
490 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
491 ASSERT_EQ(EFAULT, errno); in TEST_F()
495 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
496 ASSERT_EQ(EFAULT, errno); in TEST_F()
501 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
502 ASSERT_EQ(EFAULT, errno); in TEST_F()
511 ASSERT_EQ(0, ret); in TEST_F()
516 ASSERT_EQ(0, ret); in TEST_F()
521 ASSERT_EQ(0, ret); in TEST_F()
526 ASSERT_EQ(0, ret); in TEST_F()
531 ASSERT_EQ(0, ret); in TEST_F()
536 ASSERT_EQ(0, ret); in TEST_F()
541 ASSERT_EQ(0, ret); in TEST_F()
546 ASSERT_EQ(0, ret); in TEST_F()
551 ASSERT_EQ(0, ret); in TEST_F()
556 ASSERT_EQ(0, ret); in TEST_F()
561 ASSERT_EQ(0, ret); in TEST_F()
566 ASSERT_EQ(0, ret); in TEST_F()
571 ASSERT_EQ(0, ret); in TEST_F()
576 ASSERT_EQ(0, ret); in TEST_F()
581 ASSERT_EQ(0, ret); in TEST_F()
586 ASSERT_EQ(0, ret); in TEST_F()
591 ASSERT_EQ(0, ret); in TEST_F()