Lines Matching refs:ASSERT_EQ
40 ASSERT_EQ(0U, __fbufsize(fp)); in TEST()
45 ASSERT_EQ(1024U, __fbufsize(fp)); in TEST()
47 ASSERT_EQ(0, setvbuf(fp, buf, _IOFBF, 1)); in TEST()
48 ASSERT_EQ(1U, __fbufsize(fp)); in TEST()
50 ASSERT_EQ(0, setvbuf(fp, buf, _IOFBF, 8)); in TEST()
51 ASSERT_EQ(8U, __fbufsize(fp)); in TEST()
62 ASSERT_EQ(0, setvbuf(fp, buf, _IOLBF, sizeof(buf))); in TEST()
71 ASSERT_EQ(0U, __fpending(fp)); in TEST()
72 ASSERT_EQ('x', fputc('x', fp)); in TEST()
73 ASSERT_EQ(1U, __fpending(fp)); in TEST()
74 ASSERT_EQ('y', fputc('y', fp)); in TEST()
75 ASSERT_EQ(2U, __fpending(fp)); in TEST()
77 ASSERT_EQ(0U, __fpending(fp)); in TEST()
89 ASSERT_EQ('h', fgetc(fp)); in TEST()
90 ASSERT_EQ(4u, __freadahead(fp)); in TEST()
92 ASSERT_EQ('H', ungetc('H', fp)); in TEST()
93 ASSERT_EQ(5u, __freadahead(fp)); in TEST()
102 ASSERT_EQ('a', fputc('a', fp)); in TEST()
103 ASSERT_EQ(1U, __fpending(fp)); in TEST()
105 ASSERT_EQ(0U, __fpending(fp)); in TEST()
107 ASSERT_EQ('b', fputc('b', fp)); in TEST()
108 ASSERT_EQ('\n', fputc('\n', fp)); in TEST()
109 ASSERT_EQ(2U, __fpending(fp)); in TEST()
125 ASSERT_EQ(0, setvbuf(fp, buf, _IOLBF, sizeof(buf))); in TEST()
127 ASSERT_EQ('a', fputc('a', fp)); in TEST()
128 ASSERT_EQ(1U, __fpending(fp)); in TEST()
132 ASSERT_EQ(0U, __fpending(fp)); in TEST()
230 ASSERT_EQ(FSETLOCKING_INTERNAL, __fsetlocking(fp, FSETLOCKING_QUERY)); in TEST()
231 ASSERT_EQ(FSETLOCKING_INTERNAL, __fsetlocking(fp, FSETLOCKING_BYCALLER)); in TEST()
232 ASSERT_EQ(FSETLOCKING_BYCALLER, __fsetlocking(fp, FSETLOCKING_QUERY)); in TEST()
233 ASSERT_EQ(FSETLOCKING_BYCALLER, __fsetlocking(fp, FSETLOCKING_INTERNAL)); in TEST()
234 ASSERT_EQ(FSETLOCKING_INTERNAL, __fsetlocking(fp, FSETLOCKING_QUERY)); in TEST()
250 ASSERT_EQ(0, pthread_create(&thread, nullptr, in TEST()
255 ASSERT_EQ(0, pthread_join(thread, nullptr)); in TEST()