linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regression in dtor/input.git/next - flush pending events on clock type change
@ 2015-02-05 23:06 Benjamin Tissoires
  2015-02-05 23:58 ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Tissoires @ 2015-02-05 23:06 UTC (permalink / raw)
  To: Anshul Garg, Dmitry Torokhov; +Cc: Peter Hutterer, linux-input

Hi Anshul,

The commit 0c3e99437a66e4c869c60c2398449e6d98f3a988 in dtor/input.git/next
tree introduce an interesting regression in libinput. The tests fail :)

Actually, evemu-record and libinput switch the clock to monotonic when
opening an input node, and the first thing that gets queued is a
SYN_DROPPED event.

However, in the libinput test suite, events are the bare minimum, and
most of the tests contain only one event set (one EV_SYN).
When seeing the SYN_DROPPED, the clients are supposed to drain the events
until the next EV_SYN, and so they are losing the events that came long
after the ioctl call.
And in the end, the test suite does not receive any events.

Removing the evdev_queue_syn_dropped() call in the ioctl handling fixes
the test suite, and Peter suggested that maybe we should queue a
SYN_DROPPED event iff there are events in the queue.

Cheers,
Benjamin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-06  2:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-05 23:06 Regression in dtor/input.git/next - flush pending events on clock type change Benjamin Tissoires
2015-02-05 23:58 ` Dmitry Torokhov
     [not found]   ` <CAN+gG=HG+f66TosBowTWKnh-sMqVobEx18DK0AoPX_7OCfBDsg@mail.gmail.com>
2015-02-06  1:53     ` Dmitry Torokhov
2015-02-06  2:14     ` Benjamin Tissoires

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).