diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-02-25 09:56:59 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-02-28 15:40:43 +0100 |
commit | 6708fad936319eba56577ad76620a8a72f78ccdb (patch) | |
tree | b9f2088982ca76d8bf70fc88d0df9324ae940dc0 /util/cmake | |
parent | 7b8913b1ba10afa778d08933dc10e205c484ea50 (diff) |
pro2cmake: Fix test_realworld_comment_scope
Change the expected value from None to [], because that's the value of
the if branch. It has been like that since v6.0.0 at least.
Change-Id: Iefdb22a772fc5540ad5a38566be5a7f529e00cb1
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util/cmake')
-rwxr-xr-x | util/cmake/tests/test_parsing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cmake/tests/test_parsing.py b/util/cmake/tests/test_parsing.py index 898900674b..02ca7f8ae4 100755 --- a/util/cmake/tests/test_parsing.py +++ b/util/cmake/tests/test_parsing.py @@ -259,7 +259,7 @@ def test_realworld_comment_scope(): (cond, if_branch, else_branch) = evaluate_condition(result[0]) assert cond == 'freebsd|openbsd' assert len(if_branch) == 1 - validate_op('QMAKE_LFLAGS_NOUNDEF', '=', None, if_branch[0]) + validate_op('QMAKE_LFLAGS_NOUNDEF', '=', [], if_branch[0]) assert 'included' in result[1] assert result[1]['included'].get('value', '') == 'animation/animation.pri' |