diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-01-24 13:26:27 -0500 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2020-01-25 08:51:46 -0500 |
commit | f54f27b1a8d0b3ea842ed8981f4f56cd305f9794 (patch) | |
tree | 8f547fe57b644a0baf8c9da4bf15c1f6fae3782a /run_unittests.py | |
parent | b6b49031298209c77b8de3492c9ef823af78b40b (diff) | |
download | meson-f54f27b1a8d0b3ea842ed8981f4f56cd305f9794.zip meson-f54f27b1a8d0b3ea842ed8981f4f56cd305f9794.tar.gz meson-f54f27b1a8d0b3ea842ed8981f4f56cd305f9794.tar.bz2 |
Fix required dependency() not failing when wrap-mode=nofallback
When a dependency is required, not found on the system, and its fallback
is disabled with --wrap-mode=nofallback, meson should abort instead of
returning not-found.
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 b8f6172..da18a8b 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -4529,6 +4529,11 @@ class FailureTests(BasePlatformTests): "}['a'] == 2)\n", r"Assert failed: {k1 : 1}\['a'\] == 2") + def test_wrap_nofallback(self): + self.assertMesonRaises("dependency('notfound', fallback : ['foo', 'foo_dep'])", + r"Dependency \'notfound\' not found and fallback is disabled", + extra_args=['--wrap-mode=nofallback']) + @unittest.skipUnless(is_windows() or is_cygwin(), "requires Windows (or Windows via Cygwin)") class WindowsTests(BasePlatformTests): ''' |