Add regression ui test for duplicated path in dylib error

This commit is contained in:
Guillaume Gomez 2024-03-04 14:31:23 +01:00
parent 640e99ccc9
commit 5e6e140b0c
2 changed files with 9 additions and 0 deletions

View 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() {}

View 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