aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/tools
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-10-13 11:10:28 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-10-13 13:14:13 +0000
commita56458abad59da32c5f5d2a1c1ea7c92a93b7285 (patch)
tree94ea1e9d0bae2614d67c0a4a32cc63a415bc3784 /tests/auto/tools
parentcd567e8e298c78e0c7a81f5ef4a97b516eb85466 (diff)
Use Utilities.cStringQuote in qbs project files
This function has been available since 1.8. Change-Id: I0114bf8ec41f3be0c306be943d15599e09f69cc7 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'tests/auto/tools')
-rw-r--r--tests/auto/tools/tools.qbs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/tools/tools.qbs b/tests/auto/tools/tools.qbs
index c626c7704..bdf597b7e 100644
--- a/tests/auto/tools/tools.qbs
+++ b/tests/auto/tools/tools.qbs
@@ -1,4 +1,5 @@
import qbs
+import qbs.Utilities
QbsAutotest {
Depends { name: "qbsversion" }
@@ -10,6 +11,5 @@ QbsAutotest {
"tst_tools.h"
]
- // TODO: Use Utilities.cStringQuote
- cpp.defines: ['QBS_VERSION="' + qbsversion.version + '"']
+ cpp.defines: ["QBS_VERSION=" + Utilities.cStringQuote(qbsversion.version)]
}