Lines Matching refs:FAIL_IF

23 	FAIL_IF(devfd < 0);  in dev_papr_vpd_open_close()
24 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_open_close()
39 FAIL_IF(devfd < 0); in dev_papr_vpd_get_handle_all()
43 FAIL_IF(errno != 0); in dev_papr_vpd_get_handle_all()
44 FAIL_IF(fd < 0); in dev_papr_vpd_get_handle_all()
46 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_get_handle_all()
49 FAIL_IF(size <= 0); in dev_papr_vpd_get_handle_all()
52 FAIL_IF(!buf); in dev_papr_vpd_get_handle_all()
55 FAIL_IF(consumed != size); in dev_papr_vpd_get_handle_all()
58 FAIL_IF(read(fd, buf, size) != 0); in dev_papr_vpd_get_handle_all()
59 FAIL_IF(close(fd)); in dev_papr_vpd_get_handle_all()
63 FAIL_IF(!memmem(buf, size, needle, strlen(needle))); in dev_papr_vpd_get_handle_all()
77 FAIL_IF(devfd < 0); in dev_papr_vpd_get_handle_byte_at_a_time()
81 FAIL_IF(errno != 0); in dev_papr_vpd_get_handle_byte_at_a_time()
82 FAIL_IF(fd < 0); in dev_papr_vpd_get_handle_byte_at_a_time()
84 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_get_handle_byte_at_a_time()
93 FAIL_IF(res > sizeof(c)); in dev_papr_vpd_get_handle_byte_at_a_time()
94 FAIL_IF(res < 0); in dev_papr_vpd_get_handle_byte_at_a_time()
95 FAIL_IF(errno != 0); in dev_papr_vpd_get_handle_byte_at_a_time()
101 FAIL_IF(consumed != lseek(fd, 0, SEEK_END)); in dev_papr_vpd_get_handle_byte_at_a_time()
103 FAIL_IF(close(fd)); in dev_papr_vpd_get_handle_byte_at_a_time()
118 FAIL_IF(devfd < 0); in dev_papr_vpd_unterm_loc_code()
128 FAIL_IF(fd != -1); in dev_papr_vpd_unterm_loc_code()
129 FAIL_IF(errno != EINVAL); in dev_papr_vpd_unterm_loc_code()
131 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_unterm_loc_code()
143 FAIL_IF(devfd < 0); in dev_papr_vpd_null_handle()
147 FAIL_IF(rc != -1); in dev_papr_vpd_null_handle()
148 FAIL_IF(errno != EFAULT); in dev_papr_vpd_null_handle()
150 FAIL_IF(close(devfd) != 0); in dev_papr_vpd_null_handle()
163 FAIL_IF(devfd < 0); in papr_vpd_close_handle_without_reading()
167 FAIL_IF(errno != 0); in papr_vpd_close_handle_without_reading()
168 FAIL_IF(fd < 0); in papr_vpd_close_handle_without_reading()
171 FAIL_IF(close(fd) != 0); in papr_vpd_close_handle_without_reading()
173 FAIL_IF(close(devfd) != 0); in papr_vpd_close_handle_without_reading()
186 FAIL_IF(devfd < 0); in papr_vpd_reread()
190 FAIL_IF(errno != 0); in papr_vpd_reread()
191 FAIL_IF(fd < 0); in papr_vpd_reread()
193 FAIL_IF(close(devfd) != 0); in papr_vpd_reread()
196 FAIL_IF(size <= 0); in papr_vpd_reread()
202 FAIL_IF(!bufs[i]); in papr_vpd_reread()
204 FAIL_IF(consumed != size); in papr_vpd_reread()
207 FAIL_IF(memcmp(bufs[0], bufs[1], size)); in papr_vpd_reread()
209 FAIL_IF(close(fd) != 0); in papr_vpd_reread()
271 FAIL_IF(devfd < 0); in papr_vpd_system_loc_code()
275 FAIL_IF(errno != 0); in papr_vpd_system_loc_code()
276 FAIL_IF(fd < 0); in papr_vpd_system_loc_code()
278 FAIL_IF(close(devfd) != 0); in papr_vpd_system_loc_code()
281 FAIL_IF(size <= 0); in papr_vpd_system_loc_code()
284 FAIL_IF(!buf); in papr_vpd_system_loc_code()
287 FAIL_IF(consumed != size); in papr_vpd_system_loc_code()
290 FAIL_IF(read(fd, buf, size) != 0); in papr_vpd_system_loc_code()
291 FAIL_IF(close(fd)); in papr_vpd_system_loc_code()
295 FAIL_IF(!memmem(buf, size, needle, strlen(needle))); in papr_vpd_system_loc_code()