• Home
  • Raw
  • Download

Lines Matching refs:rv

72   int rv = fstat(fd, &s);  in test_fstat()  local
73 assert(0 == rv); in test_fstat()
82 int rv = memcmp(str1, str2, sizeof(str1)); in test_memcmp() local
83 assert(rv < 0); in test_memcmp()
85 ASSERT_ZERO_LABEL(rv); in test_memcmp()
87 ASSERT_LABEL(rv, i_j_label); in test_memcmp()
96 int rv = bcmp(str1, str2, sizeof(str1)); in test_bcmp() local
97 assert(rv != 0); in test_bcmp()
99 ASSERT_ZERO_LABEL(rv); in test_bcmp()
101 ASSERT_LABEL(rv, i_j_label); in test_bcmp()
104 rv = bcmp(str1, str2, sizeof(str1) - 2); in test_bcmp()
105 assert(rv == 0); in test_bcmp()
106 ASSERT_ZERO_LABEL(rv); in test_bcmp()
137 int rv = strcmp(str1, str2); in test_strcmp() local
138 assert(rv < 0); in test_strcmp()
140 ASSERT_ZERO_LABEL(rv); in test_strcmp()
142 ASSERT_LABEL(rv, i_j_label); in test_strcmp()
150 int rv = strlen(str1); in test_strlen() local
151 assert(rv == 4); in test_strlen()
153 ASSERT_ZERO_LABEL(rv); in test_strlen()
155 ASSERT_LABEL(rv, i_label); in test_strlen()
197 int rv = strncmp(str1, str2, sizeof(str1)); in test_strncmp() local
198 assert(rv < 0); in test_strncmp()
200 ASSERT_ZERO_LABEL(rv); in test_strncmp()
202 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strncmp()
205 rv = strncmp(str1, str2, 3); in test_strncmp()
206 assert(rv == 0); in test_strncmp()
207 ASSERT_ZERO_LABEL(rv); in test_strncmp()
216 int rv = strcasecmp(str1, str2); in test_strcasecmp() local
217 assert(rv < 0); in test_strcasecmp()
219 ASSERT_ZERO_LABEL(rv); in test_strcasecmp()
221 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strcasecmp()
224 rv = strcasecmp(str1, str3); in test_strcasecmp()
225 assert(rv == 0); in test_strcasecmp()
227 ASSERT_ZERO_LABEL(rv); in test_strcasecmp()
229 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strcasecmp()
237 rv = strcasecmp(s1, s2); in test_strcasecmp()
238 assert(rv > 0); // 'Z' > 'y' in test_strcasecmp()
240 ASSERT_ZERO_LABEL(rv); in test_strcasecmp()
242 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strcasecmp()
251 int rv = strncasecmp(str1, str2, sizeof(str1)); in test_strncasecmp() local
252 assert(rv < 0); in test_strncasecmp()
254 ASSERT_ZERO_LABEL(rv); in test_strncasecmp()
256 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strncasecmp()
259 rv = strncasecmp(str1, str2, 3); in test_strncasecmp()
260 assert(rv == 0); in test_strncasecmp()
261 ASSERT_ZERO_LABEL(rv); in test_strncasecmp()
268 rv = strncasecmp(s1, s2, 0); in test_strncasecmp()
269 assert(rv == 0); // Compare zero chars. in test_strncasecmp()
270 ASSERT_ZERO_LABEL(rv); in test_strncasecmp()
272 rv = strncasecmp(s1, s2, 1); in test_strncasecmp()
273 assert(rv == 0); // 'A' == 'a' in test_strncasecmp()
274 ASSERT_ZERO_LABEL(rv); in test_strncasecmp()
276 rv = strncasecmp(s1, s2, 2); in test_strncasecmp()
277 assert(rv == 0); // 'b' == 'B' in test_strncasecmp()
278 ASSERT_ZERO_LABEL(rv); in test_strncasecmp()
280 rv = strncasecmp(s1, s2, 3); in test_strncasecmp()
281 assert(rv > 0); // 'Z' > 'y' in test_strncasecmp()
283 ASSERT_ZERO_LABEL(rv); in test_strncasecmp()
285 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strncasecmp()
348 int rv = read(fd, buf, sizeof(buf)); in test_read() local
349 assert(rv == sizeof(buf)); in test_read()
350 ASSERT_ZERO_LABEL(rv); in test_read()
365 int rv = pread(fd, buf, sizeof(buf), 0); in test_pread() local
366 assert(rv == sizeof(buf)); in test_pread()
367 ASSERT_ZERO_LABEL(rv); in test_pread()
771 char *rv = strrchr(str1, 'r'); in test_strrchr() local
772 assert(rv == &str1[6]); in test_strrchr()
774 ASSERT_ZERO_LABEL(rv); in test_strrchr()
776 ASSERT_LABEL(rv, i_label); in test_strrchr()
785 char *rv = strstr(str1, "1s"); in test_strstr() local
786 assert(rv == &str1[3]); in test_strstr()
788 ASSERT_ZERO_LABEL(rv); in test_strstr()
790 ASSERT_LABEL(rv, i_label); in test_strstr()
793 rv = strstr(str1, "2s"); in test_strstr()
794 assert(rv == NULL); in test_strstr()
796 ASSERT_ZERO_LABEL(rv); in test_strstr()
798 ASSERT_LABEL(rv, i_j_label); in test_strstr()
808 char *rv = strpbrk(s, accept); in test_strpbrk() local
809 assert(rv == &s[3]); in test_strpbrk()
811 ASSERT_ZERO_LABEL(rv); in test_strpbrk()
813 ASSERT_LABEL(rv, j_label); in test_strpbrk()
819 rv = strpbrk(ps, "123gf"); in test_strpbrk()
820 assert(rv == &s[5]); in test_strpbrk()
822 ASSERT_LABEL(rv, j_label); in test_strpbrk()
824 ASSERT_LABEL(rv, i_j_label); in test_strpbrk()
827 rv = strpbrk(ps, "123"); in test_strpbrk()
828 assert(rv == NULL); in test_strpbrk()
830 ASSERT_ZERO_LABEL(rv); in test_strpbrk()
832 ASSERT_LABEL(rv, i_j_label); in test_strpbrk()
873 int rv = nanosleep(&req, &rem); in test_nanosleep() local
874 assert(rv == 0); in test_nanosleep()
875 ASSERT_ZERO_LABEL(rv); in test_nanosleep()
882 rv = nanosleep(&req, &rem); in test_nanosleep()
883 assert(rv == -1); in test_nanosleep()
884 ASSERT_ZERO_LABEL(rv); in test_nanosleep()
892 int rv = socketpair(PF_LOCAL, SOCK_STREAM, 0, fd); in test_socketpair() local
893 assert(rv == 0); in test_socketpair()
894 ASSERT_ZERO_LABEL(rv); in test_socketpair()