Lines Matching refs:fail

154 	int fail = 0;  in check_execveat_pathmax()  local
197 fail += check_execveat(fd, "", AT_EMPTY_PATH); in check_execveat_pathmax()
201 fail++; in check_execveat_pathmax()
215 fail += check_execveat_invoked_rc(root_dfd, longpath + 1, 0, in check_execveat_pathmax()
218 fail += check_execveat(root_dfd, longpath + 1, 0); in check_execveat_pathmax()
220 return fail; in check_execveat_pathmax()
225 int fail = 0; in run_tests() local
263 fail += check_execveat(subdir_dfd, "../execveat", 0); in run_tests()
264 fail += check_execveat(dot_dfd, "execveat", 0); in run_tests()
265 fail += check_execveat(dot_dfd_path, "execveat", 0); in run_tests()
267 fail += check_execveat(AT_FDCWD, fullname, 0); in run_tests()
269 fail += check_execveat(99, fullname, 0); in run_tests()
271 fail += check_execveat(fd, "", AT_EMPTY_PATH); in run_tests()
273 fail += check_execveat(fd_cloexec, "", AT_EMPTY_PATH); in run_tests()
275 fail += check_execveat(fd_path, "", AT_EMPTY_PATH); in run_tests()
280 fail += check_execveat(fd_ephemeral, "", AT_EMPTY_PATH); in run_tests()
283 fail += check_execveat(fd_ephemeral, "", AT_EMPTY_PATH); in run_tests()
288 fail += check_execveat(fd_ephemeral_path, "", AT_EMPTY_PATH); in run_tests()
291 fail += check_execveat_fail(fd, "", 0, ENOENT); in run_tests()
292 fail += check_execveat_fail(fd, NULL, AT_EMPTY_PATH, EFAULT); in run_tests()
296 fail += check_execveat(dot_dfd, "execveat.symlink", 0); in run_tests()
297 fail += check_execveat(dot_dfd_path, "execveat.symlink", 0); in run_tests()
299 fail += check_execveat(AT_FDCWD, fullname_symlink, 0); in run_tests()
301 fail += check_execveat(fd_symlink, "", AT_EMPTY_PATH); in run_tests()
302 fail += check_execveat(fd_symlink, "", in run_tests()
307 fail += check_execveat_fail(dot_dfd, "execveat.symlink", in run_tests()
309 fail += check_execveat_fail(dot_dfd_path, "execveat.symlink", in run_tests()
312 fail += check_execveat_fail(AT_FDCWD, fullname_symlink, in run_tests()
317 fail += check_execveat(subdir_dfd, "../script", 0); in run_tests()
318 fail += check_execveat(dot_dfd, "script", 0); in run_tests()
319 fail += check_execveat(dot_dfd_path, "script", 0); in run_tests()
321 fail += check_execveat(AT_FDCWD, fullname_script, 0); in run_tests()
323 fail += check_execveat(fd_script, "", AT_EMPTY_PATH); in run_tests()
324 fail += check_execveat(fd_script, "", in run_tests()
327 fail += check_execveat_fail(fd_script_cloexec, "", AT_EMPTY_PATH, in run_tests()
329 fail += check_execveat_fail(dot_dfd_cloexec, "script", 0, ENOENT); in run_tests()
334 fail += check_execveat(fd_script_ephemeral, "", AT_EMPTY_PATH); in run_tests()
337 fail += check_execveat(fd_script_ephemeral, "", AT_EMPTY_PATH); in run_tests()
341 fail += check_execveat(subdir_dfd_ephemeral, "../script", 0); in run_tests()
342 fail += check_execveat(subdir_dfd_ephemeral, "script", 0); in run_tests()
347 fail += check_execveat(subdir_dfd_ephemeral, "../script", 0); in run_tests()
348 fail += check_execveat_fail(subdir_dfd_ephemeral, "script", 0, ENOENT); in run_tests()
351 fail += check_execveat_fail(dot_dfd, "execveat", 0xFFFF, EINVAL); in run_tests()
353 fail += check_execveat_fail(dot_dfd, "no-such-file", 0, ENOENT); in run_tests()
354 fail += check_execveat_fail(dot_dfd_path, "no-such-file", 0, ENOENT); in run_tests()
355 fail += check_execveat_fail(AT_FDCWD, "no-such-file", 0, ENOENT); in run_tests()
357 fail += check_execveat_fail(dot_dfd, "", AT_EMPTY_PATH, EACCES); in run_tests()
359 fail += check_execveat_fail(dot_dfd, "Makefile", 0, EACCES); in run_tests()
360 fail += check_execveat_fail(fd_denatured, "", AT_EMPTY_PATH, EACCES); in run_tests()
361 fail += check_execveat_fail(fd_denatured_path, "", AT_EMPTY_PATH, in run_tests()
364 fail += check_execveat_fail(99, "", AT_EMPTY_PATH, EBADF); in run_tests()
365 fail += check_execveat_fail(99, "execveat", 0, EBADF); in run_tests()
367 fail += check_execveat_fail(fd, "execveat", 0, ENOTDIR); in run_tests()
369 fail += check_execveat_pathmax(root_dfd, "execveat", 0); in run_tests()
370 fail += check_execveat_pathmax(root_dfd, "script", 1); in run_tests()
371 return fail; in run_tests()