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 /test cases | |
| 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 'test cases')
| -rw-r--r-- | test cases/rust/9 unit tests/meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test cases/rust/9 unit tests/meson.build b/test cases/rust/9 unit tests/meson.build index b444271ae..e62745781 100644 --- a/test cases/rust/9 unit tests/meson.build +++ b/test cases/rust/9 unit tests/meson.build @@ -1,4 +1,4 @@ -project('rust unit tests', 'rust') +project('rust unit tests', 'rust', meson_version: '>=1.2.0') t = executable( 'rust_test', @@ -33,7 +33,7 @@ test( exe = executable('rust_exe', ['test2.rs', 'test.rs'], build_by_default : false) -rust = import('unstable-rust') +rust = import('rust') rust.test('rust_test_from_exe', exe, should_fail : true) lib = static_library('rust_static', ['test.rs'], build_by_default : false, rust_crate_type : 'lib') |
