mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-06 13:00:15 +01:00
tablet: increase the proximity timeout during test runs
This is causing too many false positives and they're not easy to filter out. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
50d8bc722c
commit
d5c705a539
2 changed files with 8 additions and 3 deletions
|
|
@ -33,8 +33,9 @@
|
|||
#endif
|
||||
|
||||
/* The tablet sends events every ~2ms , 50ms should be plenty enough to
|
||||
detect out-of-range */
|
||||
#define FORCED_PROXOUT_TIMEOUT ms2us(50)
|
||||
detect out-of-range.
|
||||
This value is higher during test suite runs */
|
||||
static int FORCED_PROXOUT_TIMEOUT = 50 * 1000; /* µs */
|
||||
|
||||
#define tablet_set_status(tablet_,s_) (tablet_)->status |= (s_)
|
||||
#define tablet_unset_status(tablet_,s_) (tablet_)->status &= ~(s_)
|
||||
|
|
@ -2106,6 +2107,10 @@ evdev_tablet_create(struct evdev_device *device)
|
|||
{
|
||||
struct tablet_dispatch *tablet;
|
||||
|
||||
/* Stop false positives caused by the forced proximity code */
|
||||
if (getenv("LIBINPUT_RUNNING_TEST_SUITE"))
|
||||
FORCED_PROXOUT_TIMEOUT = 150 * 1000; /* µs */
|
||||
|
||||
tablet = zalloc(sizeof *tablet);
|
||||
|
||||
if (tablet_init(tablet, device) != 0) {
|
||||
|
|
|
|||
|
|
@ -3402,7 +3402,7 @@ litest_timeout_trackpoint(void)
|
|||
void
|
||||
litest_timeout_tablet_proxout(void)
|
||||
{
|
||||
msleep(70);
|
||||
msleep(170);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue