(root: &std::path::Path, home: &std::path::Path, args: &[&str])
| 20 | } |
| 21 | |
| 22 | fn atomic_ok(root: &std::path::Path, home: &std::path::Path, args: &[&str]) -> String { |
| 23 | let output = atomic(root, home, args); |
| 24 | assert!( |
| 25 | output.status.success(), |
| 26 | "atomic {args:?} failed:\n{}{}", |
| 27 | String::from_utf8_lossy(&output.stdout), |
| 28 | String::from_utf8_lossy(&output.stderr) |
| 29 | ); |
| 30 | format!( |
| 31 | "{}{}", |
| 32 | String::from_utf8_lossy(&output.stdout), |
| 33 | String::from_utf8_lossy(&output.stderr) |
| 34 | ) |
| 35 | } |
| 36 | |
| 37 | #[test] |
| 38 | fn repair_resumes_an_incomplete_session_and_retains_evidence() { |
no test coverage detected