summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-11-18 22:11:48 -0800
committerThiago Macieira <thiago.macieira@intel.com>2014-11-21 20:37:42 +0100
commit49052ba8a87fc0f8dc437d63cc541845501ab7a8 (patch)
tree1e64a6e48be33488be1c26ce02347bc4f4d0997f /src/testlib
parentdef272750cdb7810bca4f4815ed1183ba2bd6df9 (diff)
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>
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/qtestcase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
index 928a3f31f1..24d563045b 100644
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -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;
}