Skip to content

Commit

Permalink
test: fix 'optional' test on Ubuntu CI
Browse files Browse the repository at this point in the history
Pkg-config on this version has a trailing " in the cmd output.
  • Loading branch information
gdesmott committed Mar 14, 2024
1 parent a2d9f87 commit 677edd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ fn toml_pkg_config_err_version(
output: _,
name: _,
} => {
let s = format!(">= {}\"", expected_version);
let s = format!(">= {}", expected_version);
// remove trailing '"", if any
let cmd = cmd.strip_suffix('"').unwrap_or(&cmd);
assert!(cmd.ends_with(&s));
}
_ => panic!("Wrong pkg-config error type"),
Expand Down

0 comments on commit 677edd3

Please sign in to comment.