[LTP] [PATCH v2 05/10] setxattr03: add setxattrat variant
Cyril Hrubis
chrubis@suse.cz
Tue Oct 7 17:11:47 CEST 2025
Hi!
> if (!TST_RET) {
> tst_res(TFAIL, "%s succeeded unexpectedly", tc[i].desc);
> @@ -143,10 +156,15 @@ static void setup(void)
> if (set_append_on(append_fd))
> tst_brk(TBROK | TERRNO, "Set %s append-only failed",
> APPEND_FILE);
> +
> + tmpdir_fd = SAFE_OPEN(tst_tmpdir_path(), O_DIRECTORY);
Here as well. Maybe we should use AT_FDCWD in one test and return value
from SAFE_OPEN(".", O_DIRECTORY) in the other, so that we test different
codepaths in the kernel.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list