Lines Matching refs:fail

169 	int fail = 0;  in check_execveat_pathmax()  local
211 fail += check_execveat(fd, "", AT_EMPTY_PATH); in check_execveat_pathmax()
215 fail++; in check_execveat_pathmax()
230 fail += check_execveat_invoked_rc(root_dfd, longpath + 1, 0, in check_execveat_pathmax()
234 fail += check_execveat(root_dfd, longpath + 1, 0); in check_execveat_pathmax()
237 return fail; in check_execveat_pathmax()
242 int fail = 0; in run_tests() local
280 fail += check_execveat(subdir_dfd, "../execveat", 0); in run_tests()
281 fail += check_execveat(dot_dfd, "execveat", 0); in run_tests()
282 fail += check_execveat(dot_dfd_path, "execveat", 0); in run_tests()
284 fail += check_execveat(AT_FDCWD, fullname, 0); in run_tests()
286 fail += check_execveat(99, fullname, 0); in run_tests()
288 fail += check_execveat(fd, "", AT_EMPTY_PATH); in run_tests()
290 fail += check_execveat(fd_cloexec, "", AT_EMPTY_PATH); in run_tests()
292 fail += check_execveat(fd_path, "", AT_EMPTY_PATH); in run_tests()
297 fail += check_execveat(fd_ephemeral, "", AT_EMPTY_PATH); in run_tests()
300 fail += check_execveat(fd_ephemeral, "", AT_EMPTY_PATH); in run_tests()
305 fail += check_execveat(fd_ephemeral_path, "", AT_EMPTY_PATH); in run_tests()
308 fail += check_execveat_fail(fd, "", 0, ENOENT); in run_tests()
309 fail += check_execveat_fail(fd, NULL, AT_EMPTY_PATH, EFAULT); in run_tests()
313 fail += check_execveat(dot_dfd, "execveat.symlink", 0); in run_tests()
314 fail += check_execveat(dot_dfd_path, "execveat.symlink", 0); in run_tests()
316 fail += check_execveat(AT_FDCWD, fullname_symlink, 0); in run_tests()
318 fail += check_execveat(fd_symlink, "", AT_EMPTY_PATH); in run_tests()
319 fail += check_execveat(fd_symlink, "", in run_tests()
324 fail += check_execveat_fail(dot_dfd, "execveat.symlink", in run_tests()
326 fail += check_execveat_fail(dot_dfd_path, "execveat.symlink", in run_tests()
329 fail += check_execveat_fail(AT_FDCWD, fullname_symlink, in run_tests()
333 fail += check_execveat_fail(dot_dfd, "pipe", 0, EACCES); in run_tests()
338 fail += check_execveat(subdir_dfd, "../script", 0); in run_tests()
339 fail += check_execveat(dot_dfd, "script", 0); in run_tests()
340 fail += check_execveat(dot_dfd_path, "script", 0); in run_tests()
342 fail += check_execveat(AT_FDCWD, fullname_script, 0); in run_tests()
344 fail += check_execveat(fd_script, "", AT_EMPTY_PATH); in run_tests()
345 fail += check_execveat(fd_script, "", in run_tests()
348 fail += check_execveat_fail(fd_script_cloexec, "", AT_EMPTY_PATH, in run_tests()
350 fail += check_execveat_fail(dot_dfd_cloexec, "script", 0, ENOENT); in run_tests()
355 fail += check_execveat(fd_script_ephemeral, "", AT_EMPTY_PATH); in run_tests()
358 fail += check_execveat(fd_script_ephemeral, "", AT_EMPTY_PATH); in run_tests()
362 fail += check_execveat(subdir_dfd_ephemeral, "../script", 0); in run_tests()
363 fail += check_execveat(subdir_dfd_ephemeral, "script", 0); in run_tests()
368 fail += check_execveat(subdir_dfd_ephemeral, "../script", 0); in run_tests()
369 fail += check_execveat_fail(subdir_dfd_ephemeral, "script", 0, ENOENT); in run_tests()
372 fail += check_execveat_fail(dot_dfd, "execveat", 0xFFFF, EINVAL); in run_tests()
374 fail += check_execveat_fail(dot_dfd, "no-such-file", 0, ENOENT); in run_tests()
375 fail += check_execveat_fail(dot_dfd_path, "no-such-file", 0, ENOENT); in run_tests()
376 fail += check_execveat_fail(AT_FDCWD, "no-such-file", 0, ENOENT); in run_tests()
378 fail += check_execveat_fail(dot_dfd, "", AT_EMPTY_PATH, EACCES); in run_tests()
380 fail += check_execveat_fail(dot_dfd, "Makefile", 0, EACCES); in run_tests()
381 fail += check_execveat_fail(fd_denatured, "", AT_EMPTY_PATH, EACCES); in run_tests()
382 fail += check_execveat_fail(fd_denatured_path, "", AT_EMPTY_PATH, in run_tests()
385 fail += check_execveat_fail(99, "", AT_EMPTY_PATH, EBADF); in run_tests()
386 fail += check_execveat_fail(99, "execveat", 0, EBADF); in run_tests()
388 fail += check_execveat_fail(fd, "execveat", 0, ENOTDIR); in run_tests()
390 fail += check_execveat_pathmax(root_dfd, "execveat", 0); in run_tests()
391 fail += check_execveat_pathmax(root_dfd, "script", 1); in run_tests()
392 return fail; in run_tests()