mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 12:33:57 +00:00
Add regression ui test for duplicated path in dylib error
This commit is contained in:
parent
640e99ccc9
commit
5e6e140b0c
7
tests/ui/codegen/duplicated-path-in-error.rs
Normal file
7
tests/ui/codegen/duplicated-path-in-error.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
//@ only-linux
|
||||
//@ compile-flags: -Zcodegen-backend=/non-existing-one.so
|
||||
|
||||
// This test ensures that the error of the "not found dylib" doesn't duplicate
|
||||
// the path of the dylib.
|
||||
|
||||
fn main() {}
|
2
tests/ui/codegen/duplicated-path-in-error.stderr
Normal file
2
tests/ui/codegen/duplicated-path-in-error.stderr
Normal file
|
@ -0,0 +1,2 @@
|
|||
error: couldn't load codegen backend /non-existing-one.so: cannot open shared object file: No such file or directory
|
||||
|
Loading…
Reference in a new issue