mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 18:57:19 +00:00

musl's dlopen returns a different error than glibc, which contains the name of the file. This would cause the test to fail, since the filename would appear twice in the output (once in the error from rustc, once in the error message from musl). Split the expected test outputs for the different libc implementations. Signed-off-by: Jens Reidel <adrian@travitia.xyz>
17 lines
503 B
Rust
17 lines
503 B
Rust
//@ revisions: musl gnu
|
|
//@ only-linux
|
|
//@ ignore-cross-compile because this relies on host libc behaviour
|
|
//@ compile-flags: -Zcodegen-backend=/non-existing-one.so
|
|
//@[gnu] only-gnu
|
|
//@[musl] only-musl
|
|
|
|
// This test ensures that the error of the "not found dylib" doesn't duplicate
|
|
// the path of the dylib.
|
|
//
|
|
// glibc and musl have different dlopen error messages, so the expected error
|
|
// message differs between the two.
|
|
|
|
fn main() {}
|
|
|
|
//~? ERROR couldn't load codegen backend /non-existing-one.so
|