[LTP] [PATCH] sysctl/sysctl03: Test whether return EINVAL when passing negative value

Cyril Hrubis chrubis@suse.cz
Wed Feb 16 13:59:10 CET 2022


Hi!
> > I'm just wondering if this wouldn't be actually easier as a C test. I
> > bet that simple write() to the sys_file would work exactly the same and
> > we wouldn't depend on sysctl being present on the system.
> If using C program, it seems not have a suitable place to put this test 
> case. Do you have some advise?

We do have testcases/kernel/fs/proc/ so I guess that we can as well add
testcases/kernel/fs/sys/

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list