aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-04-19 13:47:32 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-26 17:04:57 +0100
commit3af39a463b6d6314136bc944022a99c22bd31b04 (patch)
tree8c6902f7c39404aa913bf317280a3d8680c2375e /run_unittests.py
parentb6d277c140c7cbec3349bf5bd5986fc79f804e42 (diff)
downloadmeson-3af39a463b6d6314136bc944022a99c22bd31b04.zip
meson-3af39a463b6d6314136bc944022a99c22bd31b04.tar.gz
meson-3af39a463b6d6314136bc944022a99c22bd31b04.tar.bz2
Interpreter: Fallback when required is false but forcefallback is true
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 6756c80..905cb8f 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -2513,6 +2513,14 @@ class AllPlatformTests(BasePlatformTests):
self.build()
self.run_tests()
+ def test_implicit_forcefallback(self):
+ testdir = os.path.join(self.unit_test_dir, '95 implicit force fallback')
+ with self.assertRaises(subprocess.CalledProcessError) as cm:
+ self.init(testdir)
+ self.init(testdir, extra_args=['--wrap-mode=forcefallback'])
+ self.new_builddir()
+ self.init(testdir, extra_args=['--force-fallback-for=something'])
+
def test_nopromote(self):
testdir = os.path.join(self.common_test_dir, '99 subproject subdir')
with self.assertRaises(subprocess.CalledProcessError) as cm: