[PATCH weston v2 6/7] tests: Run devices tests using the test desktop shell

Pekka Paalanen ppaalanen at gmail.com
Tue Feb 13 11:53:02 UTC 2018


On Thu,  8 Feb 2018 15:37:57 +0200
Alexandros Frantzis <alexandros.frantzis at collabora.com> wrote:

> 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 at collabora.com>
> ---
> Changes in v2:
>  - New in v2.
> 
>  tests/devices-test.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> 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)

Reviewed-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180213/17d17a2f/attachment-0001.sig>


More information about the wayland-devel mailing list