Lines Matching refs:fail
155 int fail = 0; in check_execveat_pathmax() local
198 fail += check_execveat(fd, "", AT_EMPTY_PATH); in check_execveat_pathmax()
202 fail++; in check_execveat_pathmax()
216 fail += check_execveat_invoked_rc(root_dfd, longpath + 1, 0, in check_execveat_pathmax()
219 fail += check_execveat(root_dfd, longpath + 1, 0); in check_execveat_pathmax()
221 return fail; in check_execveat_pathmax()
226 int fail = 0; in run_tests() local
264 fail += check_execveat(subdir_dfd, "../execveat", 0); in run_tests()
265 fail += check_execveat(dot_dfd, "execveat", 0); in run_tests()
266 fail += check_execveat(dot_dfd_path, "execveat", 0); in run_tests()
268 fail += check_execveat(AT_FDCWD, fullname, 0); in run_tests()
270 fail += check_execveat(99, fullname, 0); in run_tests()
272 fail += check_execveat(fd, "", AT_EMPTY_PATH); in run_tests()
274 fail += check_execveat(fd_cloexec, "", AT_EMPTY_PATH); in run_tests()
276 fail += check_execveat(fd_path, "", AT_EMPTY_PATH); in run_tests()
281 fail += check_execveat(fd_ephemeral, "", AT_EMPTY_PATH); in run_tests()
284 fail += check_execveat(fd_ephemeral, "", AT_EMPTY_PATH); in run_tests()
289 fail += check_execveat(fd_ephemeral_path, "", AT_EMPTY_PATH); in run_tests()
292 fail += check_execveat_fail(fd, "", 0, ENOENT); in run_tests()
293 fail += check_execveat_fail(fd, NULL, AT_EMPTY_PATH, EFAULT); in run_tests()
297 fail += check_execveat(dot_dfd, "execveat.symlink", 0); in run_tests()
298 fail += check_execveat(dot_dfd_path, "execveat.symlink", 0); in run_tests()
300 fail += check_execveat(AT_FDCWD, fullname_symlink, 0); in run_tests()
302 fail += check_execveat(fd_symlink, "", AT_EMPTY_PATH); in run_tests()
303 fail += check_execveat(fd_symlink, "", in run_tests()
308 fail += check_execveat_fail(dot_dfd, "execveat.symlink", in run_tests()
310 fail += check_execveat_fail(dot_dfd_path, "execveat.symlink", in run_tests()
313 fail += check_execveat_fail(AT_FDCWD, fullname_symlink, in run_tests()
317 fail += check_execveat_fail(dot_dfd, "pipe", 0, EACCES); in run_tests()
322 fail += check_execveat(subdir_dfd, "../script", 0); in run_tests()
323 fail += check_execveat(dot_dfd, "script", 0); in run_tests()
324 fail += check_execveat(dot_dfd_path, "script", 0); in run_tests()
326 fail += check_execveat(AT_FDCWD, fullname_script, 0); in run_tests()
328 fail += check_execveat(fd_script, "", AT_EMPTY_PATH); in run_tests()
329 fail += check_execveat(fd_script, "", in run_tests()
332 fail += check_execveat_fail(fd_script_cloexec, "", AT_EMPTY_PATH, in run_tests()
334 fail += check_execveat_fail(dot_dfd_cloexec, "script", 0, ENOENT); in run_tests()
339 fail += check_execveat(fd_script_ephemeral, "", AT_EMPTY_PATH); in run_tests()
342 fail += check_execveat(fd_script_ephemeral, "", AT_EMPTY_PATH); in run_tests()
346 fail += check_execveat(subdir_dfd_ephemeral, "../script", 0); in run_tests()
347 fail += check_execveat(subdir_dfd_ephemeral, "script", 0); in run_tests()
352 fail += check_execveat(subdir_dfd_ephemeral, "../script", 0); in run_tests()
353 fail += check_execveat_fail(subdir_dfd_ephemeral, "script", 0, ENOENT); in run_tests()
356 fail += check_execveat_fail(dot_dfd, "execveat", 0xFFFF, EINVAL); in run_tests()
358 fail += check_execveat_fail(dot_dfd, "no-such-file", 0, ENOENT); in run_tests()
359 fail += check_execveat_fail(dot_dfd_path, "no-such-file", 0, ENOENT); in run_tests()
360 fail += check_execveat_fail(AT_FDCWD, "no-such-file", 0, ENOENT); in run_tests()
362 fail += check_execveat_fail(dot_dfd, "", AT_EMPTY_PATH, EACCES); in run_tests()
364 fail += check_execveat_fail(dot_dfd, "Makefile", 0, EACCES); in run_tests()
365 fail += check_execveat_fail(fd_denatured, "", AT_EMPTY_PATH, EACCES); in run_tests()
366 fail += check_execveat_fail(fd_denatured_path, "", AT_EMPTY_PATH, in run_tests()
369 fail += check_execveat_fail(99, "", AT_EMPTY_PATH, EBADF); in run_tests()
370 fail += check_execveat_fail(99, "execveat", 0, EBADF); in run_tests()
372 fail += check_execveat_fail(fd, "execveat", 0, ENOTDIR); in run_tests()
374 fail += check_execveat_pathmax(root_dfd, "execveat", 0); in run_tests()
375 fail += check_execveat_pathmax(root_dfd, "script", 1); in run_tests()
376 return fail; in run_tests()