From 7c586856b92926298b10b42a9e8236466d231077 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 27 Aug 2012 08:47:36 +1000 Subject: server/xi2: only build touch tests for XI 2.2 Signed-off-by: Peter Hutterer --- tests/server/xi2.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)); -- cgit v1.2.3