| 260 | |
| 261 | #[allow(dead_code)] |
| 262 | pub fn run_test_bin_expect_err<I, T, P: AsRef<Path>>(current_dir: P, arguments: I) -> Output |
| 263 | where |
| 264 | I: IntoIterator<Item = T>, |
| 265 | T: AsRef<OsStr>, |
| 266 | { |
| 267 | let output = run_test_bin(current_dir, arguments); |
| 268 | |
| 269 | if output.status.success() { |
| 270 | io::stdout().write_all(&output.stdout).unwrap(); |
| 271 | io::stderr().write_all(&output.stderr).unwrap(); |
| 272 | } |
| 273 | |
| 274 | assert!(!output.status.success(), "expect err"); |
| 275 | |
| 276 | output |
| 277 | } |
| 278 | |
| 279 | pub fn run_test_bin_expect_ok<I, T, P: AsRef<Path>>(current_dir: P, arguments: I) -> Output |
| 280 | where |