[strace/strace] tests/pidns.c: skip some namespace tests in chroot (#190)
J Farkas
notifications at github.com
Wed Jul 21 10:27:12 UTC 2021
Yes, that's my point - just like unshare() with some options in pidns_test_init(), these ioctls are supposed to fail with EPERM in chroot. The unshare() code path later checks and makes the test skip, but the ioctls fail and cause a test suite failure.
The pull request is adjusting the conditions so that the ioctl failure (when expected to fail), will make the test skipped instead of failing.
Perhaps a similar effect would be to move check_ns_ioctl() down so that it's not run at all when unshare() failed?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/pull/190#issuecomment-884079041
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20210721/dea06e4d/attachment.htm>
More information about the Strace-devel
mailing list