about summary refs log tree commit diff
path: root/tests/ui/codegen/duplicated-path-in-error.gnu.stderr
diff options
context:
space:
mode:
authorJens Reidel <adrian@travitia.xyz>2025-06-10 18:36:22 +0200
committerJens Reidel <adrian@travitia.xyz>2025-07-14 18:37:49 +0200
commitae1b1b4f8a9a1cd012cd7db944bbfa2adae703cb (patch)
tree845b35b9138c2e5bfe346d4918975bd69ae69bb1 /tests/ui/codegen/duplicated-path-in-error.gnu.stderr
parentcccf075eba88363269e8589ebb8d40874cc542d8 (diff)
downloadrust-ae1b1b4f8a9a1cd012cd7db944bbfa2adae703cb.tar.gz
rust-ae1b1b4f8a9a1cd012cd7db944bbfa2adae703cb.zip
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). Split the expected test outputs for the
different libc implementations.

Signed-off-by: Jens Reidel <adrian@travitia.xyz>
Diffstat (limited to 'tests/ui/codegen/duplicated-path-in-error.gnu.stderr')
-rw-r--r--tests/ui/codegen/duplicated-path-in-error.gnu.stderr2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/codegen/duplicated-path-in-error.gnu.stderr b/tests/ui/codegen/duplicated-path-in-error.gnu.stderr
new file mode 100644
index 00000000000..d0d34e2f934
--- /dev/null
+++ b/tests/ui/codegen/duplicated-path-in-error.gnu.stderr
@@ -0,0 +1,2 @@
+error: couldn't load codegen backend /non-existing-one.so: cannot open shared object file: No such file or directory
+