[LTP] [PATCH v2 02/10] syscalls/ioctl:add common c file for loop ioctl

Cyril Hrubis chrubis@suse.cz
Mon Apr 20 14:55:58 CEST 2020


Hi!
> > In the end I've renamed and moved these functions into the test library
> > because the functionality is generic enough and I doubt that these
> > tests would be the only one using it.
> That's great.  I remember prctl cases use this function. Also, in some 
> cap cases, it needs bitwise operators(I only know prctl08.c). Maybe we 
> can add TST_ASSERT_BITWISE?

I guess that we would need to pass to numbers to the bitwise operation,
one would be mask for which bits should be used for the comparsion and
one with the actual bits. Which tests would need that? I looked at
capset and capget tests but there does not seem to any bitwise checks on
values on proc or sys files.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list