[LTP] [PATCH v2 4/8] Add ioctl_pidfd02 test
Cyril Hrubis
chrubis@suse.cz
Mon Jul 7 17:37:27 CEST 2025
Hi!
> > Looking at the kernel code it looks that if the PIDFD_INFO_EXIT is not
> > supported we will get ESRCH in the second case. So I suppose that better
> > fix would be to allow ESRCH in the second case if kernel is older than
> > 6.15 instead of skipping the whole test.
>
> Maybe it makes more sense to check PIDFD_INFO_EXIT is available via
> configure.ac and eventually check for this support in the setup(). So we
> avoid weird runtime checks. WDYT?
And if you think about checking PIDFD_INFO_EXIT in the test setup() that
may be doable. But there is no need for configure checks in that case,
we just use PIDFD_INFO_EXIT fallback definition from the lapi headers.
I suppose adding a check for support that would be called if kernel
version is older than 6.15 would work as well.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list