On Thu, Oct 20, 2022 at 04:07:41PM +0530, Viresh Kumar wrote:
On 17-10-22, 21:00, Kent Gibson wrote:
I was surprised to find HTE tests passing on a kernel without CONFIG_HTE. I take that as being a kernel bug (GPIO_V2_LINE_VALID_FLAGS includes the HTE flag unconditionally - which is wrong IMHO).
You probably shouldn't assume HTE works - unless you have a system that supports HTE.
Should I drop them ? Or run them conditionally ? How ?
The Rust test framework is pretty simple, so there is no way to conditionally skip tests, AFAIAA. And the only generic way to tell if your kernel supports HTE without probing it, which makes testing it pointless. So I don't see any alternative but to drop them.
Though I would be happy to learn otherwise.
Cheers, Kent.