Skip to content

Commit c6f20a6

Browse files
committed
Try normalizing away some windows paths
1 parent aea7484 commit c6f20a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/compile-test.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ fn base_config(test_dir: &str) -> compiletest::Config {
5555
config.args.push("-Aunused".into());
5656
config.args.push("-Zui-testing".into());
5757

58+
// Normalize away slashes in windows paths.
59+
config.stderr_filter(r#"\\(.*)\.rs"#, "/$1.rs");
60+
5861
config.root_dir = Path::new("tests").join(test_dir);
5962
//config.build_base = profile_path.join("test").join(test_dir);
6063
config.program = profile_path.join(if cfg!(windows) {
@@ -106,7 +109,8 @@ fn run_ui_toml() {
106109
.parent()
107110
.unwrap()
108111
.display()
109-
.to_string(),
112+
.to_string()
113+
.replace('\\', "/"),
110114
"$$DIR",
111115
);
112116

0 commit comments

Comments
 (0)