diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-08-23 16:03:10 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-09-19 13:54:49 -0400 |
commit | 759200348476752b304ffca0cb3737a5b61f9137 (patch) | |
tree | 5f6c43f1dd6e45949f8e2c902e6de278b774dffa /test cases | |
parent | bdf1f3c0e2a772a81fd6a19ec1a2f495948406fc (diff) | |
download | meson-759200348476752b304ffca0cb3737a5b61f9137.zip meson-759200348476752b304ffca0cb3737a5b61f9137.tar.gz meson-759200348476752b304ffca0cb3737a5b61f9137.tar.bz2 |
Rust: Prevent linking Rust ABI with C library/executable
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/rust/4 polyglot/meson.build | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test cases/rust/4 polyglot/meson.build b/test cases/rust/4 polyglot/meson.build index 60922fe..b2fd8f9 100644 --- a/test cases/rust/4 polyglot/meson.build +++ b/test cases/rust/4 polyglot/meson.build @@ -47,8 +47,9 @@ foreach crate_type : ['lib', 'rlib', 'dylib', 'cdylib', 'staticlib', 'proc-macro install: true) test(f'polyglottest-@name@', e) else - # FIXME: Verify that linking Rust ABI with C ABI executable raises an error. - # Currently it only fails at build time. + testcase expect_error('Try to link Rust ABI library .*', how: 're') + executable(f'prog-@name@', 'prog.c', link_with: l) + endtestcase endif endforeach endforeach |