We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aea7484 commit c6f20a6Copy full SHA for c6f20a6
tests/compile-test.rs
@@ -55,6 +55,9 @@ fn base_config(test_dir: &str) -> compiletest::Config {
55
config.args.push("-Aunused".into());
56
config.args.push("-Zui-testing".into());
57
58
+ // Normalize away slashes in windows paths.
59
+ config.stderr_filter(r#"\\(.*)\.rs"#, "/$1.rs");
60
+
61
config.root_dir = Path::new("tests").join(test_dir);
62
//config.build_base = profile_path.join("test").join(test_dir);
63
config.program = profile_path.join(if cfg!(windows) {
@@ -106,7 +109,8 @@ fn run_ui_toml() {
106
109
.parent()
107
110
.unwrap()
108
111
.display()
- .to_string(),
112
+ .to_string()
113
+ .replace('\\', "/"),
114
"$$DIR",
115
);
116
0 commit comments