about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-16 17:14:06 +0100
committerGitHub <noreply@github.com>2025-02-16 17:14:06 +0100
commit73744391113ad2b9d0a47e5da1a6b2cd73e1bd1b (patch)
tree18068d861e60ac438c2a274d3109f39b5215a88d
parentf82764f2d962f8c6f8a88c7b19561de9388a1750 (diff)
parent8ae3ca98e5c225da22e7ab1a86069098a74cdfe2 (diff)
downloadrust-73744391113ad2b9d0a47e5da1a6b2cd73e1bd1b.tar.gz
rust-73744391113ad2b9d0a47e5da1a6b2cd73e1bd1b.zip
Rollup merge of #137117 - ChrisDenton:error-lang, r=fmease,Noratrieb
Fix test that relies on error language

We shouldn't care about the OS error message text in this test.
-rw-r--r--tests/ui/unpretty/staged-api-invalid-path-108697.rs4
-rw-r--r--tests/ui/unpretty/staged-api-invalid-path-108697.stderr2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/unpretty/staged-api-invalid-path-108697.rs b/tests/ui/unpretty/staged-api-invalid-path-108697.rs
index 71bad213576..8a806b10d9d 100644
--- a/tests/ui/unpretty/staged-api-invalid-path-108697.rs
+++ b/tests/ui/unpretty/staged-api-invalid-path-108697.rs
@@ -2,8 +2,8 @@
 // ICE: tcx.resolutions(()) is not supported for local crate -Zunpretty=mir
 // on invalid module path with staged_api
 //@ compile-flags: -Zunpretty=mir
-//@ normalize-stderr: "The system cannot find the file specified." -> "No such file or directory"
+//@ normalize-stderr: "lol`: .*\(" -> "lol`: $$FILE_NOT_FOUND_MSG ("
 #![feature(staged_api)]
 #[path = "lol"]
 mod foo;
-//~^ ERROR couldn't read
+//~^ ERROR couldn't read `$DIR/lol`
diff --git a/tests/ui/unpretty/staged-api-invalid-path-108697.stderr b/tests/ui/unpretty/staged-api-invalid-path-108697.stderr
index e68e19c4dc9..188f4985ded 100644
--- a/tests/ui/unpretty/staged-api-invalid-path-108697.stderr
+++ b/tests/ui/unpretty/staged-api-invalid-path-108697.stderr
@@ -1,4 +1,4 @@
-error: couldn't read `$DIR/lol`: No such file or directory (os error 2)
+error: couldn't read `$DIR/lol`: $FILE_NOT_FOUND_MSG (os error 2)
   --> $DIR/staged-api-invalid-path-108697.rs:8:1
    |
 LL | mod foo;