mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
ignore whitespace in ldd tests
This commit is contained in:
parent
aa8f995b89
commit
8160974ce8
@ -39,5 +39,5 @@ fn main() {
|
||||
fn find_lld_version_in_logs(output: &Output) -> bool {
|
||||
let lld_version_re = Regex::new(r"^LLD [0-9]+\.[0-9]+\.[0-9]+").unwrap();
|
||||
let stderr = std::str::from_utf8(&output.stderr).unwrap();
|
||||
stderr.lines().any(|line| lld_version_re.is_match(line))
|
||||
stderr.lines().any(|line| lld_version_re.is_match(line.trim()))
|
||||
}
|
||||
|
@ -47,5 +47,5 @@ fn main() {
|
||||
fn find_lld_version_in_logs(output: &Output) -> bool {
|
||||
let lld_version_re = Regex::new(r"^LLD [0-9]+\.[0-9]+\.[0-9]+").unwrap();
|
||||
let stderr = std::str::from_utf8(&output.stderr).unwrap();
|
||||
stderr.lines().any(|line| lld_version_re.is_match(line))
|
||||
stderr.lines().any(|line| lld_version_re.is_match(line.trim()))
|
||||
}
|
||||
|
@ -61,5 +61,5 @@ fn main() {
|
||||
fn find_lld_version_in_logs(output: &Output) -> bool {
|
||||
let lld_version_re = Regex::new(r"^LLD [0-9]+\.[0-9]+\.[0-9]+").unwrap();
|
||||
let stderr = std::str::from_utf8(&output.stderr).unwrap();
|
||||
stderr.lines().any(|line| lld_version_re.is_match(line))
|
||||
stderr.lines().any(|line| lld_version_re.is_match(line.trim()))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user