ignore whitespace in ldd tests
This commit is contained in:
parent
aa8f995b89
commit
8160974ce8
3 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue