[LTP] [PATCH v2 2/2] Add chdir() test for unprivileged user

Petr Vorel pvorel@suse.cz
Fri Jul 24 15:32:47 CEST 2020


Hi Martin,

> +++ b/runtest/syscalls
> @@ -54,6 +54,7 @@ capset04 capset04
>  cacheflush01 cacheflush01

>  chdir01 chdir01
> +chdir02 chdir02
>  chdir01A symlink01 -T chdir01
>  chdir04 chdir04
You missed to add chdir02 to runtest/quickhit. I guess this was deliberate,
right?
(I wonder if we really need runtest/quickhit anyway).

I like both tests (nice work, thanks!), just don't like the duplicity. Isn't
there a way to use getopt parameter for one of the variants and have just single
test? But understand if you don't bother with it (maybe better duplicity but
simpler code).

Other that that LGTM.
Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr


More information about the ltp mailing list