test: put two warnings into the tablet tests

These tests rely on libevdev doing the right thing, which it only does when it
uses the UI_GET_SYSNAME ioctl.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2014-09-22 15:48:22 +10:00
parent a6f18c9cca
commit cd5c9dce3b

View file

@ -696,6 +696,10 @@ START_TEST(tools_with_serials)
NULL,
NULL,
NULL);
/* WARNING: this test fails if UI_GET_SYSNAME isn't
* available or isn't used by libevdev (1.3, commit 2ff45c73).
* Put a sleep(1) here and that usually fixes it.
*/
litest_event(dev[i], EV_KEY, BTN_TOOL_PEN, 1);
litest_event(dev[i], EV_MSC, MSC_SERIAL, 100);
@ -742,6 +746,11 @@ START_TEST(tools_without_serials)
NULL,
NULL);
/* WARNING: this test fails if UI_GET_SYSNAME isn't
* available or isn't used by libevdev (1.3, commit 2ff45c73).
* Put a sleep(1) here and that usually fixes it.
*/
litest_event(dev[i], EV_KEY, BTN_TOOL_PEN, 1);
litest_event(dev[i], EV_SYN, SYN_REPORT, 0);