Skip to content

Commit f0c38d5

Browse files
committed
ignore whitespace in ldd tests
1 parent f18cb8a commit f0c38d5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/run-make/rust-lld-by-default/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ fn main() {
4141
fn find_lld_version_in_logs(output: &Output) -> bool {
4242
let lld_version_re = Regex::new(r"^LLD [0-9]+\.[0-9]+\.[0-9]+").unwrap();
4343
let stderr = std::str::from_utf8(&output.stderr).unwrap();
44-
stderr.lines().any(|line| lld_version_re.is_match(line))
44+
stderr.lines().any(|line| lld_version_re.is_match(line.trim_whitespace()))
4545
}

tests/run-make/rust-lld-custom-target/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ fn main() {
4747
fn find_lld_version_in_logs(output: &Output) -> bool {
4848
let lld_version_re = Regex::new(r"^LLD [0-9]+\.[0-9]+\.[0-9]+").unwrap();
4949
let stderr = std::str::from_utf8(&output.stderr).unwrap();
50-
stderr.lines().any(|line| lld_version_re.is_match(line))
50+
stderr.lines().any(|line| lld_version_re.is_match(line.trim_whitespace()))
5151
}

tests/run-make/rust-lld/rmake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ fn main() {
6161
fn find_lld_version_in_logs(output: &Output) -> bool {
6262
let lld_version_re = Regex::new(r"^LLD [0-9]+\.[0-9]+\.[0-9]+").unwrap();
6363
let stderr = std::str::from_utf8(&output.stderr).unwrap();
64-
stderr.lines().any(|line| lld_version_re.is_match(line))
64+
stderr.lines().any(|line| lld_version_re.is_match(line.trim_whitespace()))
6565
}

0 commit comments

Comments
 (0)