aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2018-02-15 15:09:10 -0800
committerJake Petroules <jake.petroules@qt.io>2018-02-21 23:20:57 +0000
commitf4f295b5197d7a38dfba5675ff576929ec8aee48 (patch)
treed40348593af18eb903a41d429191daa05b92c92d /tests
parent9379e0eae0f05614313083c8b46b8dae6da8b230 (diff)
Only use fallback values for the -std= command line option when needed
Instead of always using the fallback value, we instead always use the standard value unless we know we're running an older toolchain which does not support it. This alleviates the potential for differing behavior in newer versions of compilers which may attempt to remain compatible with earlier drafts of corresponding standards. [ChangeLog] Always use standard values for -std= when possible Change-Id: I61ff3ecd863caa24cb8fb54500e62dc310a2af02 Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/blackbox/tst_blackbox.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp
index 3de56885f..8ac4a9851 100644
--- a/tests/auto/blackbox/tst_blackbox.cpp
+++ b/tests/auto/blackbox/tst_blackbox.cpp
@@ -1423,6 +1423,7 @@ void TestBlackbox::cxxLanguageVersion()
QbsRunParameters resolveParams;
resolveParams.command = "resolve";
resolveParams.arguments << "--force-probe-execution";
+ resolveParams.arguments << "modules.cpp.useLanguageVersionFallback:true";
if (!version.isEmpty())
resolveParams.arguments << ("modules.cpp.cxxLanguageVersion:" + version);
QCOMPARE(runQbs(resolveParams), 0);