[PATCH spice-server 2/3] test-codecs-parsing: Add test case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Check if encoder contains an invalid character.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]