Skip to content

Commit 20d33c5

Browse files
committed
tests: Fix duplicated-path-in-error fail with musl
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). Substitute the error message with the one from glibc to work around this. Signed-off-by: Jens Reidel <[email protected]>
1 parent 100199c commit 20d33c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ui/codegen/duplicated-path-in-error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ only-linux
22
//@ compile-flags: -Zcodegen-backend=/non-existing-one.so
3+
//@ normalize-stderr: "Error loading shared library .+:" -> "cannot open shared object file:"
34

45
// This test ensures that the error of the "not found dylib" doesn't duplicate
56
// the path of the dylib.

0 commit comments

Comments
 (0)