(system_info: &SystemInfo)
| 174 | } |
| 175 | |
| 176 | fn is_valgrind_installed(system_info: &SystemInfo) -> bool { |
| 177 | if !matches!( |
| 178 | get_valgrind_status().status, |
| 179 | ToolInstallStatus::Installed { .. } |
| 180 | ) { |
| 181 | return false; |
| 182 | } |
| 183 | |
| 184 | // `libc6-dbg` is only relevant on apt-based systems; on others (e.g. NixOS) |
| 185 | // `dpkg` is absent and would spuriously report it as missing. |
| 186 | if apt::is_system_compatible(system_info) { |
| 187 | apt::is_package_installed("libc6-dbg") |
| 188 | } else { |
| 189 | debug!("Skipping libc6-dbg check on non-apt-based system"); |
| 190 | true |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | pub async fn install_valgrind( |
| 195 | system_info: &SystemInfo, |
no test coverage detected