[LTP] [PATCH] epoll_pwait06: Skip BPF map file descriptor

Cyril Hrubis chrubis@suse.cz
Wed Sep 24 14:08:04 CEST 2025


Hi!
> I'll accept EPERM only for the file descriptor types which are now 
> unconditionally skipped. The only file descriptor type which could then 
> get skipped incorrectly will be BPF. But that's not a problem because 
> verifying epoll support is out of scope of this test. The primary 
> purpose is to verify that small epoll_pwait() timeouts won't get 
> misinterpreted as infinity. In theory, verifying that on a single file 
> descriptor type should be sufficient.

Ah, I had no idea that this is a regression test for a generic epoll
code, it never occured to me that we run something like that for all
types of file descriptors. For that test it makes sense to just skip
unsupported fds.

I guess that we are actually mixing two tests and it would make sense to
separate these two. I.e. one that is a regression test for the epoll bug
and second, probably called epoll_ctl06.c that would hammer the
EPOLL_CTL_ADD with all kinds of fds and expect either success or error.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list