Lines Matching refs:chroot
11 * Testcase to test whether chroot(2) sets errno correctly.
13 * - to test whether chroot() is setting ENAMETOOLONG if the
15 * - to test whether chroot() is setting ENOTDIR if the argument
17 * - to test whether chroot() is setting ENOENT if the directory
19 * - attempt to chroot to a path pointing to an invalid address
21 * - to test whether chroot() is setting ELOOP if the two
43 {&longname_dir, ENAMETOOLONG, "chroot(longer than VFS_MAXNAMELEN)"},
44 {&file_name, ENOTDIR, "chroot(not a directory)"},
45 {&nonexistent_dir, ENOENT, "chroot(does not exists)"},
46 {&bad_ptr, EFAULT, "chroot(an invalid address)"},
47 {&loop_dir, ELOOP, "chroot(symlink loop)"}
54 TST_EXP_FAIL(chroot(*tc->dir), tc->error, "%s", tc->desc);