[Spice-devel] [PATCH spice-server 2/3] test-codecs-parsing: Add test case
Frediano Ziglio
fziglio at redhat.com
Wed Jun 27 07:00:36 UTC 2018
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
More information about the Spice-devel
mailing list