mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 16:20:29 +01:00
test: force the litest feature enum to be 8 bytes or more
We've used up all bits, so let's extend the enum. (1 << 31) triggers an assertion because we check for > LITEST_DEVICELESS. So we can't use that bit without other changes. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
fe47232949
commit
52e86f4b2a
1 changed files with 4 additions and 0 deletions
|
|
@ -314,8 +314,12 @@ enum litest_device_feature {
|
|||
LITEST_NO_DEBOUNCE = bit(28),
|
||||
LITEST_TOOL_MOUSE = bit(29),
|
||||
LITEST_DIRECT = bit(30),
|
||||
|
||||
_LITEST_DEVICE_FEATURE__FORCE_SIZE = LONG_MAX,
|
||||
};
|
||||
|
||||
static_assert(sizeof(enum litest_device_feature) >= 8, "enum size expected to be 8");
|
||||
|
||||
/* this is a semi-mt device, so we keep track of the touches that the tests
|
||||
* send and modify them so that the first touch is always slot 0 and sends
|
||||
* the top-left of the bounding box, the second is always slot 1 and sends
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue