Re: [PATCH] rfim: add new test for verifying RFIM sysfs interface
Andrea Cervesato via ltp <[email protected]>
| Newsgroups | gmane.linux.ltp |
|---|---|
| Message-ID | <[email protected]> |
> 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-IBi9RG/[email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp