Re: [LTP] [PATCH v2 05/10] setxattr03: add setxattrat variant

Cyril Hrubis
2025-10-07T15:11:16Z

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