From: Jan Kiszka Date: Fri, 26 Aug 2011 17:52:11 +0000 (+0200) Subject: Fix qjson test of solidus encoding X-Git-Tag: v0.15.1~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b89f4a7d2a9d4261288ae4d75ae103177c172c3f;p=thirdparty%2Fqemu.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 64fcdcb4ad0..36d4ac26b4c 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\\\"\"",