diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-18 12:16:19 +0100 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-11-19 12:08:57 -0800 |
| commit | 110e2de4fa76da9c2bb7fe7b2008ac859564dbd3 (patch) | |
| tree | 868fbe8512627cf3388697507dce3fd32749aaa5 /unittests/allplatformstests.py | |
| parent | 93f59313e10090bfe6058fabbb235aa549f933c0 (diff) | |
| download | meson-110e2de4fa76da9c2bb7fe7b2008ac859564dbd3.tar.gz | |
rust: avoid warnings from rust.test
Any argument from the base target is copied to the test target, but some
keyword arguments for libraries are not available in executable.
Remove them.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'unittests/allplatformstests.py')
| -rw-r--r-- | unittests/allplatformstests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index f4434bb9f..b6a87af1f 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -4891,6 +4891,13 @@ class AllPlatformTests(BasePlatformTests): 'error: use of a disallowed/placeholder name `foo`' in cm.exception.stdout) @skip_if_not_language('rust') + def test_rust_test_warnings(self) -> None: + if self.backend is not Backend.ninja: + raise unittest.SkipTest('Rust is only supported with ninja currently') + testdir = os.path.join(self.rust_test_dir, '9 unit tests') + self.init(testdir, extra_args=['--fatal-meson-warnings']) + + @skip_if_not_language('rust') def test_rust_rlib_linkage(self) -> None: if self.backend is not Backend.ninja: raise unittest.SkipTest('Rust is only supported with ninja currently') |
