[LTP] [PATCH] rfim: add new test for verifying RFIM sysfs interface
Andrea Cervesato
andrea.cervesato@suse.com
Wed Jun 17 09:32:03 CEST 2026
> This function can be easily replaced by access().
>
> TST_EXP_PASS(access(path, R_OK));
> TST_EXP_FAIL(access(path, W_OK), ..);
Thinking twice, this can be even simpler by using stat()
and checking for .st_mode in returned struct. In this way you
filter out all permissions, not only read or write.
Regards,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
More information about the ltp
mailing list