-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop the [/] test output macro #5851
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surfacing the key changes
@@ -1290,7 +1290,6 @@ fn substitute_macros(input: &str) -> String { | |||
("[SUMMARY]", " Summary"), | |||
("[FIXING]", " Fixing"), | |||
("[EXE]", if cfg!(windows) { ".exe" } else { "" }), | |||
("[/]", if cfg!(windows) { "\\" } else { "/" }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dropping the macro
tests/testsuite/support/mod.rs
Outdated
@@ -831,6 +831,8 @@ impl Execs { | |||
// Let's not deal with \r\n vs \n on windows... | |||
let actual = actual.replace("\r", ""); | |||
let actual = actual.replace("\t", "<tab>"); | |||
// or / vs \ | |||
let actual = actual.replace("\\", "/"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the replacement
// Let's not deal with / vs \ (windows...) | ||
let expected = expected.replace("\\", "/"); | ||
let mut actual: &str = &actual.replace("\\", "/"); | ||
let expected = substitute_macros(&expected); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change moved to here
@bors: r+ So much better! |
📌 Commit 5071b38 has been approved by |
Drop the [/] test output macro Refs #5742
☀️ Test successful - status-appveyor, status-travis |
Remove backslash management in 2 tool_paths tests With #5851 this is no longer necessary
Refs #5742