summaryrefslogtreecommitdiff
path: root/tests/auto/cmdlineparser
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-12-06 00:26:58 -0800
committerJake Petroules <jake.petroules@qt.io>2017-01-30 08:53:19 +0000
commit7949bf108655c0c3e2696ab5dec4ec3ae8248acb (patch)
tree84cbdb7c272024853a6e873f168f75065880c03e /tests/auto/cmdlineparser
parentf4d51b56f771d6e42210f967f989b03391fd5bbd (diff)
downloadqbs-7949bf108655c0c3e2696ab5dec4ec3ae8248acb.tar.gz
Add a Utilities.cStringQuote function
This accepts a raw string and provides a C string literal, properly escaped and quoted. Change-Id: I61a02ce07f152f36ac31bf973932a7f88406bb75 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/cmdlineparser')
-rw-r--r--tests/auto/cmdlineparser/cmdlineparser.qbs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/cmdlineparser/cmdlineparser.qbs b/tests/auto/cmdlineparser/cmdlineparser.qbs
index d18982389..774372c61 100644
--- a/tests/auto/cmdlineparser/cmdlineparser.qbs
+++ b/tests/auto/cmdlineparser/cmdlineparser.qbs
@@ -4,6 +4,7 @@ import QbsFunctions
QbsAutotest {
testName: "cmdlineparser"
files: ["tst_cmdlineparser.cpp", "../../../src/app/qbs/qbstool.cpp"]
+ // TODO: Use Utilities.cStringQuote
cpp.defines: base.concat([
'SRCDIR="' + path + '"',
"QBS_VERSION=\"" + QbsFunctions.qbsVersion() + "\""