diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-12-15 11:21:40 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-01-14 18:29:28 +0000 |
commit | 5db77fd103eb7a1248791402caa3c977f6a8241c (patch) | |
tree | 0a36ad98d8c8db4f8dbae1eff9c326486f1b5d6f /run_unittests.py | |
parent | 4b3d48a8c94e28e12dc928fb343f52f3b669510d (diff) | |
download | meson-5db77fd103eb7a1248791402caa3c977f6a8241c.zip meson-5db77fd103eb7a1248791402caa3c977f6a8241c.tar.gz meson-5db77fd103eb7a1248791402caa3c977f6a8241c.tar.bz2 |
coredata: Add missing nopromote wrap_mode choice
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 58ebff4..e40ebc4 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -2295,6 +2295,12 @@ class AllPlatformTests(BasePlatformTests): self.build() self.run_tests() + def test_nopromote(self): + testdir = os.path.join(self.common_test_dir, '99 subproject subdir') + with self.assertRaises(subprocess.CalledProcessError) as cm: + self.init(testdir, extra_args=['--wrap-mode=nopromote']) + self.assertIn('Dependency "subsub" not found', cm.exception.stdout) + def test_force_fallback_for(self): testdir = os.path.join(self.unit_test_dir, '31 forcefallback') self.init(testdir, extra_args=['--force-fallback-for=zlib,foo']) |