aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2018-03-16 07:57:22 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2018-03-19 11:50:38 +0000
commitcabbeb1c5450b67ba649d77474b892d5acb0d622 (patch)
tree24f9a51edc8c591d66dc81ba39726ea843054cd5 /tests/auto
parent62007d922c78175235d887a473eddf865b25bc39 (diff)
Synchronize autotest defines in qmake and qbs build
Do not remove QT_USE_FAST_OPERATOR_PLUS and QT_USE_FAST_CONCATENATION in QtcAutotest, but in the two tests that won't build with it. In the qmake build the defines are not removed from json.pro, because this file does not include qttest.pri. Change-Id: I97d173528ca2a02bac1bfae30709a959e6b69375 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/json/json.qbs5
-rw-r--r--tests/auto/utils/stringutils/stringutils.qbs4
-rw-r--r--tests/auto/utils/templateengine/templateengine.qbs4
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/json/json.qbs b/tests/auto/json/json.qbs
index 3b0a36e1411..6ebb9ce4381 100644
--- a/tests/auto/json/json.qbs
+++ b/tests/auto/json/json.qbs
@@ -7,6 +7,11 @@ QtcAutotest {
consoleApplication: true
+ cpp.defines: base.filter(function(d) {
+ return d !== "QT_USE_FAST_OPERATOR_PLUS"
+ && d !== "QT_USE_FAST_CONCATENATION";
+ })
+
Group {
name: "test data"
files: [
diff --git a/tests/auto/utils/stringutils/stringutils.qbs b/tests/auto/utils/stringutils/stringutils.qbs
index 4a36fe9cb1f..67dae5f643e 100644
--- a/tests/auto/utils/stringutils/stringutils.qbs
+++ b/tests/auto/utils/stringutils/stringutils.qbs
@@ -3,5 +3,9 @@ import qbs
QtcAutotest {
name: "StringUtils autotest"
Depends { name: "Utils" }
+ cpp.defines: base.filter(function(d) {
+ return d !== "QT_USE_FAST_OPERATOR_PLUS"
+ && d !== "QT_USE_FAST_CONCATENATION";
+ })
files: "tst_stringutils.cpp"
}
diff --git a/tests/auto/utils/templateengine/templateengine.qbs b/tests/auto/utils/templateengine/templateengine.qbs
index b31ebdcd1b2..f3c719a168f 100644
--- a/tests/auto/utils/templateengine/templateengine.qbs
+++ b/tests/auto/utils/templateengine/templateengine.qbs
@@ -3,5 +3,9 @@ import qbs
QtcAutotest {
name: "TemplateEngine autotest"
Depends { name: "Utils" }
+ cpp.defines: base.filter(function(d) {
+ return d !== "QT_USE_FAST_OPERATOR_PLUS"
+ && d !== "QT_USE_FAST_CONCATENATION";
+ })
files: "tst_templateengine.cpp"
}