diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-08-14 17:41:18 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2020-09-02 12:55:31 -0400 |
commit | 9365486104dc66ee05d5bfaf97a0e83ce9d1289d (patch) | |
tree | 778b787e9973e3b0eab2bf80903a2e77aeca3634 /run_unittests.py | |
parent | bfb8d25deb794e9506775caa023bbf278dcf17e1 (diff) | |
download | meson-9365486104dc66ee05d5bfaf97a0e83ce9d1289d.zip meson-9365486104dc66ee05d5bfaf97a0e83ce9d1289d.tar.gz meson-9365486104dc66ee05d5bfaf97a0e83ce9d1289d.tar.bz2 |
Special case meson.version().version_compare() statement
when that statement gets evaluated, the interpreter remembers the
version target and if it was part of the evaluation of a `if` condition
then the target meson version is temporally overriden within that
if-block.
Fixes: #7590
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index c095605..8c03693 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -5094,6 +5094,11 @@ recommended as it is not supported on some platforms''') self.init(testdir) self.build() + def test_meson_version_compare(self): + testdir = os.path.join(self.unit_test_dir, '82 meson version compare') + out = self.init(testdir) + self.assertNotRegex(out, r'WARNING') + class FailureTests(BasePlatformTests): ''' Tests that test failure conditions. Build files here should be dynamically |