summaryrefslogtreecommitdiffstats
path: root/util/cmake/tests/test_scope_handling.py
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-02-13 00:15:15 +0100
committerTobias Hunger <tobias.hunger@qt.io>2019-02-27 16:02:58 +0000
commit8c04d6c967b33a311fe17e69e9c5e2289a2fcd14 (patch)
tree25641dc6019707677774ebcde23c92027d788446 /util/cmake/tests/test_scope_handling.py
parent35f23a3dad20e09bada4e8fcdcc0de16b8a6af2f (diff)
CMake: pro2cmake.py: Improve condition simplification code
Improve the code that simplifies conditions to take "OS families" into account. E.g. if a system must be ANDROID, then it is redundant to express that it is NOT APPLE_OSX. Change-Id: Ib7e62726c309bf84b9e5e0d6a6e3465511db0ead Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
Diffstat (limited to 'util/cmake/tests/test_scope_handling.py')
-rwxr-xr-xutil/cmake/tests/test_scope_handling.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cmake/tests/test_scope_handling.py b/util/cmake/tests/test_scope_handling.py
index 1c3406bac8d..8bca8c8ec57 100755
--- a/util/cmake/tests/test_scope_handling.py
+++ b/util/cmake/tests/test_scope_handling.py
@@ -332,7 +332,7 @@ def test_qstandardpaths_scopes():
assert scope6.total_condition == 'UNIX'
assert scope7.total_condition == 'APPLE_OSX'
assert scope8.total_condition == 'UNIX AND NOT APPLE_OSX'
- assert scope9.total_condition == 'ANDROID AND NOT ANDROID_EMBEDDED AND NOT APPLE_OSX'
+ assert scope9.total_condition == 'ANDROID AND NOT ANDROID_EMBEDDED'
assert scope10.total_condition == 'UNIX AND NOT APPLE_OSX AND (ANDROID_EMBEDDED OR NOT ANDROID)'
- assert scope11.total_condition == 'HAIKU AND UNIX AND NOT APPLE_OSX AND (ANDROID_EMBEDDED OR NOT ANDROID)'
+ assert scope11.total_condition == 'HAIKU AND (ANDROID_EMBEDDED OR NOT ANDROID)'
assert scope12.total_condition == 'UNIX AND NOT APPLE_OSX AND NOT HAIKU AND (ANDROID_EMBEDDED OR NOT ANDROID)'