aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-06-09 15:13:17 -0400
committerXavier Claessens <xclaesse@gmail.com>2021-06-16 19:04:03 -0400
commitb6d754a40c618fe280af8f8527add2078a261a72 (patch)
treef943f54fe685dbb9a039d415f6201c09d8220d35 /run_unittests.py
parent3970f269fd23c148e94800ca01b6a2d76003a3a2 (diff)
downloadmeson-b6d754a40c618fe280af8f8527add2078a261a72.zip
meson-b6d754a40c618fe280af8f8527add2078a261a72.tar.gz
meson-b6d754a40c618fe280af8f8527add2078a261a72.tar.bz2
interpreter: Extract dependency() logic into its own helper class
The dependency lookup is a lot of complex code. This refactor it all into a single file/class outside of interpreter main class. This new design allows adding more fallbacks candidates in the future (e.g. using cc.find_library()) but does not yet add any extra API.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 92557b2..639043b 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -6221,7 +6221,7 @@ class FailureTests(BasePlatformTests):
def test_wrap_nofallback(self):
self.assertMesonRaises("dependency('notfound', fallback : ['foo', 'foo_dep'])",
- r"Dependency \'notfound\' not found and fallback is disabled",
+ r"Dependency 'notfound' is required but not found.",
extra_args=['--wrap-mode=nofallback'])
def test_message(self):