mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Rollup merge of #137120 - ChrisDenton:its-all-relative, r=GuillaumeGomez
Enable `relative-path-include-bytes-132203` rustdoc-ui test on Windows The problem with the error message on Windows is: - The path separators are different - The OS error message string is different Normalizing those two things makes the test pass on Windows.
This commit is contained in:
@@ -5,7 +5,7 @@ test $DIR/relative-path-include-bytes-132203.rs - (line 18) ... FAILED
|
||||
failures:
|
||||
|
||||
---- $DIR/relative-path-include-bytes-132203.rs - (line 18) stdout ----
|
||||
error: couldn't read `$DIR/relative-dir-empty-file`: No such file or directory (os error 2)
|
||||
error: couldn't read `$DIR/relative-dir-empty-file`: $FILE_NOT_FOUND_MSG (os error 2)
|
||||
--> $DIR/relative-path-include-bytes-132203.rs:19:9
|
||||
|
|
||||
LL | let x = include_bytes!("relative-dir-empty-file");
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
//@ ignore-windows different error message
|
||||
//@ revisions: edition2015 edition2024
|
||||
//@[edition2015]edition:2015
|
||||
//@[edition2015]check-fail
|
||||
@@ -7,8 +6,9 @@
|
||||
//@[edition2024]edition:2024
|
||||
//@[edition2024]check-pass
|
||||
//@[edition2024]compile-flags:--test --test-args=--test-threads=1
|
||||
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout: "tests.rustdoc-ui.doctest." -> "$$DIR/"
|
||||
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ normalize-stdout: "`: .* \(os error 2\)" -> "`: $$FILE_NOT_FOUND_MSG (os error 2)"
|
||||
|
||||
// https://github.com/rust-lang/rust/issues/132203
|
||||
// This version, because it's edition2024, passes thanks to the new
|
||||
|
||||
Reference in New Issue
Block a user