On Sat, Mar 05, 2016 at 01:48:33AM +0530, Anchit Jain wrote:
[...]
> >>  >>  + if(syscall(__NR_chmod, "chmod_test_file", 0600) != 0)
> >>  >>  + perror_msg_and_fail("chmod -1");
> >>  >
> >>  > Let me repeat: chmod syscall can legitimately fail with ENOSYS.
> >>
> >>  How can I check that?
> >
> > errno == ENOSYS?
> 
> So in case if errno is ENOSYS test should be skipped rather than failing ?

Either skipper or (in this case it's easy) printed as failed with ENOSYS.
Of cause the second call that's expected to fail with ENOENT shouldn't be
made if the first one failed with ENOSYS.


-- 
ldv

Attachment: pgpWhTvvy9a4M.pgp
Description: PGP signature

------------------------------------------------------------------------------
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to