diff --git a/src/test.rs b/src/test.rs index 53b48d5..8181e2a 100644 --- a/src/test.rs +++ b/src/test.rs @@ -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"),