diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-11-30 13:37:30 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-11-30 16:12:43 +0000 |
commit | a5cc49f2c62cfd4094c6a8bccd7741ca9ee7e072 (patch) | |
tree | 5a36b7352758dfe19df63e9a6d8fe866f61379fe /tests/auto/blackbox/testdata/buildenv-change/buildenv-change.qbs | |
parent | 5cd5e8e958a91592a00f5b2fac54d71eb6903330 (diff) | |
download | qbs-a5cc49f2c62cfd4094c6a8bccd7741ca9ee7e072.tar.gz |
Clean up the scope of configure scripts
- Remove unneeded elements from the special scope.
- Do not use the special scope for evaluating the condition.
- Only set up the special scope if we actually run the configure script.
Change-Id: I5e288fe839213a5226dae3be768c537c2919a15b
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/buildenv-change/buildenv-change.qbs')
-rw-r--r-- | tests/auto/blackbox/testdata/buildenv-change/buildenv-change.qbs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/blackbox/testdata/buildenv-change/buildenv-change.qbs b/tests/auto/blackbox/testdata/buildenv-change/buildenv-change.qbs index acf9d0890..c2445eafd 100644 --- a/tests/auto/blackbox/testdata/buildenv-change/buildenv-change.qbs +++ b/tests/auto/blackbox/testdata/buildenv-change/buildenv-change.qbs @@ -3,8 +3,9 @@ import qbs CppApplication { Probe { id: dummy + property stringList toolchain: qbs.toolchain configure: { - if (qbs.toolchain.contains("msvc")) + if (toolchain.contains("msvc")) console.info("msvc"); } } |