]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: improve test_sysinfo to check for NS_GET_NSTYPE usability
authorKarel Zak <kzak@redhat.com>
Wed, 5 Mar 2025 08:53:34 +0000 (09:53 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 5 Mar 2025 13:17:30 +0000 (14:17 +0100)
commitd9f8ee6193360b9ffdb8a2cd7804c3e816506a78
tree2aa86be457d8f52b2868a33d8a06da18a72cafb3
parentf3e082d411425d0f3752e13dcd2e873f63eca515
tests: improve test_sysinfo to check for NS_GET_NSTYPE usability

Now the test checks if the kernel supports the NS_GET_NSTYPE ioctl,
but it seems that on some platforms it's implemented but does not work
as expected and returns ENOTTY.

Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 4391638806a40b71383646a33ed022476f4c9dea)
tests/helpers/test_sysinfo.c