summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-08-27 08:47:36 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-08-27 10:09:15 +1000
commit7c586856b92926298b10b42a9e8236466d231077 (patch)
tree84fb0da15a75b4ab27e0ac36a32935a5dfe62b6a
parentefaad5b6aa8e1ca8e1bdc89388de82b1a2e7f279 (diff)
server/xi2: only build touch tests for XI 2.2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--tests/server/xi2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/server/xi2.cpp b/tests/server/xi2.cpp
index e863827..9fd7713 100644
--- a/tests/server/xi2.cpp
+++ b/tests/server/xi2.cpp
@@ -114,6 +114,7 @@ TEST_P(XInput2Test, XIQueryPointerTouchscreen)
XFreeEventData(Display(), xcookie);
}
+#ifdef HAVE_XI22
TEST_P(XInput2Test, DisableDeviceEndTouches)
{
SCOPED_TRACE("When a device is disabled, any physically active touches\n"
@@ -193,5 +194,6 @@ TEST_P(XInput2Test, DisableDeviceEndTouches)
xi2_opcode_,
XI_TouchEnd));
}
+#endif
INSTANTIATE_TEST_CASE_P(, XInput2Test, ::testing::Range(0, 3));