From: Jan Kiszka Date: Fri, 26 Aug 2011 17:52:11 +0000 (+0200) Subject: Fix qjson test of solidus encoding X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=69faeee12aee8f54870dbea78d9d1e98e30bd773;p=qemu.git Fix qjson test of solidus encoding "\/" 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 Acked-by: Michael Roth Signed-off-by: Luiz Capitulino --- diff --git a/check-qjson.c b/check-qjson.c index 64fcdcb4ad..36d4ac26b4 100644 --- a/check-qjson.c +++ b/check-qjson.c @@ -33,7 +33,8 @@ START_TEST(escaped_string) { "\"\\n\"", "\n" }, { "\"\\r\"", "\r" }, { "\"\\t\"", "\t" }, - { "\"\\/\"", "\\/" }, + { "\"/\"", "/" }, + { "\"\\/\"", "/", .skip = 1 }, { "\"\\\\\"", "\\" }, { "\"\\\"\"", "\"" }, { "\"hello world \\\"embedded string\\\"\"",