[Spice-devel] [PATCH x11spice] Fix running tests on Debian/Ubuntu

Jeremy White jwhite at codeweavers.com
Mon Aug 5 21:19:34 UTC 2019


On 8/5/19 1:19 PM, Brendan Shanks wrote:
> Check the Debian/Ubuntu path for the non-wrapper Xorg binary
> 
> Signed-off-by: Brendan Shanks <bshanks at codeweavers.com>

Acked-by: Jeremy White <jwhite at codeweavers.com>

> ---
>   src/tests/xdummy.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/src/tests/xdummy.c b/src/tests/xdummy.c
> index 0651dc7..ce57b1c 100644
> --- a/src/tests/xdummy.c
> +++ b/src/tests/xdummy.c
> @@ -157,6 +157,8 @@ static int exec_xorg(xdummy_t *server, gconstpointer user_data G_GNUC_UNUSED)
>       strcpy(xorg_binary, "Xorg");
>       if (access("/usr/libexec/Xorg", X_OK) == 0)
>           strcpy(xorg_binary, "/usr/libexec/Xorg");
> +    else if (access("/usr/lib/xorg/Xorg", X_OK) == 0)
> +        strcpy(xorg_binary, "/usr/lib/xorg/Xorg");
>   
>       return execlp(xorg_binary, xorg_binary, "-ac",
>                     "-config", server->xorg_fname,
> 



More information about the Spice-devel mailing list