From cd5c9dce3b700f442b7bb051439737281e3fce62 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 22 Sep 2014 15:48:22 +1000 Subject: [PATCH] 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 --- test/tablet.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/tablet.c b/test/tablet.c index e1fb60d2..6d98bebd 100644 --- a/test/tablet.c +++ b/test/tablet.c @@ -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);