[RFC/PATCH v1 2/3] tests/ioctl_evdev.c: use 0 instead of EV_SYN in EVIOCGBIT
Dmitry V. Levin
ldv at altlinux.org
Sun Aug 19 08:31:52 UTC 2018
On Fri, Aug 10, 2018 at 07:12:43PM +0800, Zhibin Li wrote:
> Because there is no EV_SYN in EVIOCGBIT, use 0 instead.
> ---
> tests/ioctl_evdev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/ioctl_evdev.c b/tests/ioctl_evdev.c
> index 5eacac02..071b6b0d 100644
> --- a/tests/ioctl_evdev.c
> +++ b/tests/ioctl_evdev.c
> @@ -138,7 +138,7 @@ main(void)
> TEST_NULL_ARG_EX(EVIOCGABS(0x3f), "EVIOCGABS(0x3f /* ABS_??? */)");
> TEST_NULL_ARG_EX(EVIOCSABS(0x3f), "EVIOCSABS(0x3f /* ABS_??? */)");
>
> - TEST_NULL_ARG(EVIOCGBIT(EV_SYN, 0));
> + TEST_NULL_ARG(EVIOCGBIT(0, 0));
> TEST_NULL_ARG(EVIOCGBIT(EV_KEY, 1));
> TEST_NULL_ARG(EVIOCGBIT(EV_REL, 2));
> TEST_NULL_ARG(EVIOCGBIT(EV_ABS, 3));
This has to be merged with the previous patch, otherwise
the test will fail when the previous patch is already applied
but this one isn't.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20180819/25875887/attachment.bin>
More information about the Strace-devel
mailing list