summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>2018-02-08 15:37:57 +0200
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2018-02-15 13:14:53 +0200
commit849b333133c6c7c2953d526cc0cd2111c354e302 (patch)
treeb8f67889bb8596621f254f861a8a3b677e7865bd
parent468bd0b9c87e3dc6bf152af3bf48a16dc1ed696c (diff)
downloadweston-849b333133c6c7c2953d526cc0cd2111c354e302.tar.gz
tests: Run devices tests using the test desktop shell
Use the weston-test-desktop-shell to run the devices tests, instead of the currently used desktop-shell. The test desktop shell doesn't interact with temporary globals (e.g. wl_seat), thus avoiding an inherent race in the current wayland protocol when removing globals. This will allow us to safely add tests which add/remove such globals in upcoming commits. Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r--tests/devices-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/devices-test.c b/tests/devices-test.c
index ce1cea3b..a6ec6eaf 100644
--- a/tests/devices-test.c
+++ b/tests/devices-test.c
@@ -40,6 +40,8 @@
WL_SEAT_CAPABILITY_POINTER |\
WL_SEAT_CAPABILITY_TOUCH)
+char *server_parameters = "--shell=weston-test-desktop-shell.so";
+
/* simply test if weston sends the right capabilities when
* some devices are removed */
TEST(seat_capabilities_test)