Skip to content

Commit d8961f0

Browse files
committed
[WIP] Produce SVG stderr output for Windows
Need to update tests from CI failure.
1 parent 4387811 commit d8961f0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/tools/compiletest/src/runtest.rs

+8-3
Original file line numberDiff line numberDiff line change
@@ -4014,12 +4014,17 @@ impl<'test> TestCx<'test> {
40144014
explicit_format: bool,
40154015
) -> usize {
40164016
let stderr_bits = format!("{}bit.stderr", self.config.get_pointer_width());
4017-
let force_color_svg = self.props.compile_flags.iter().any(|s| s.contains("--color"))
4018-
&& !self.config.target.contains("windows");
4017+
let force_color_svg = self.props.compile_flags.iter().any(|s| s.contains("--color"));
40194018
let (stderr_kind, stdout_kind) = match output_kind {
40204019
TestOutput::Compile => (
40214020
if force_color_svg {
4022-
UI_SVG
4021+
if self.config.target.contains("windows") {
4022+
// We single out Windows here because some of the CLI coloring is
4023+
// specifically changed for Windows.
4024+
"windows.svg"
4025+
} else {
4026+
UI_SVG
4027+
}
40234028
} else if self.props.stderr_per_bitwidth {
40244029
&stderr_bits
40254030
} else {

0 commit comments

Comments
 (0)