[Spice-devel] [PATCH spice-server 2/3] test-codecs-parsing: Add test case
Christophe Fergeau
cfergeau at redhat.com
Tue Jul 3 08:28:57 UTC 2018
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
On Wed, Jun 27, 2018 at 08:00:36AM +0100, Frediano Ziglio wrote:
> Check if encoder contains an invalid character.
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> server/tests/test-codecs-parsing.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/server/tests/test-codecs-parsing.c b/server/tests/test-codecs-parsing.c
> index 0390a49b..860a575e 100644
> --- a/server/tests/test-codecs-parsing.c
> +++ b/server/tests/test-codecs-parsing.c
> @@ -109,6 +109,12 @@ static void codecs_bad(void)
> G_LOG_LEVEL_WARNING,
> "*spice: unknown video codec unknown_codec",
> TRUE,
> + },{
> + // invalid characters in encoder
> + "spice&:mjpeg",
> + G_LOG_LEVEL_WARNING,
> + "*spice: invalid encoder:codec value*",
> + TRUE,
> },
> #if !defined(HAVE_GSTREAMER_1_0) && !defined(HAVE_GSTREAMER_0_10)
> {
> --
> 2.17.1
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180703/d501e121/attachment-0001.sig>
More information about the Spice-devel
mailing list