(mut guard: Option<GvproxyGuard>)
| 1353 | } |
| 1354 | |
| 1355 | fn cleanup_gvproxy(mut guard: Option<GvproxyGuard>) { |
| 1356 | if let Some(mut guard) = guard.take() |
| 1357 | && let Some(mut child) = guard.disarm() |
| 1358 | { |
| 1359 | let _ = child.kill(); |
| 1360 | let _ = child.wait(); |
| 1361 | } |
| 1362 | } |
| 1363 | |
| 1364 | fn check(ret: i32, func: &'static str) -> Result<(), String> { |
| 1365 | if ret < 0 { |
no test coverage detected