]> git.proxmox.com Git - qemu.git/commitdiff
Fix qjson test of solidus encoding
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 26 Aug 2011 17:52:11 +0000 (19:52 +0200)
committerJustin M. Forbes <jforbes@redhat.com>
Mon, 3 Oct 2011 19:38:17 +0000 (14:38 -0500)
"\/" is supposed to be decoded as "/", but there is no need to encode
"/" via escape. Fix the existing test and add a second one expressing
this.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
check-qjson.c

index 64fcdcb4ad0ac5c113d8ddd343375b0c46bf20ce..36d4ac26b4c7c9c7c02b85c99cfd37d74e65cf0a 100644 (file)
@@ -33,7 +33,8 @@ START_TEST(escaped_string)
         { "\"\\n\"", "\n" },
         { "\"\\r\"", "\r" },
         { "\"\\t\"", "\t" },
-        { "\"\\/\"", "\\/" },
+        { "\"/\"", "/" },
+        { "\"\\/\"", "/", .skip = 1 },
         { "\"\\\\\"", "\\" },
         { "\"\\\"\"", "\"" },
         { "\"hello world \\\"embedded string\\\"\"",