QtTest: fix pretty-printing of QStrings containing "

It needs to be escaped with a backslash.

Change-Id: Idf62914fca08eb6be8a039c2af72bac42c0d594a
Reviewed-by: Jason McDonald <macadder1@gmail.com>
This commit is contained in:
Thiago Macieira 2014-11-18 22:11:48 -08:00
parent def272750c
commit 49052ba8a8

View File

@ -2153,7 +2153,7 @@ char *toPrettyUnicode(const ushort *p, int length)
break;
}
if (*p < 0x7f && *p >= 0x20 && *p != '\\') {
if (*p < 0x7f && *p >= 0x20 && *p != '\\' && *p != '"') {
*dst++ = *p;
continue;
}