1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

fix(install): improve the error output when the test is failing

This commit is contained in:
Sylvestre Ledru 2021-03-27 10:08:03 +01:00
parent faef7e9214
commit 75700677ca

View file

@ -352,11 +352,19 @@ fn test_install_copy_file() {
#[test] #[test]
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
fn test_install_target_file_dev_null() { fn test_install_target_file_dev_null() {
let (at, mut ucmd) = at_and_ucmd!(); let scene = TestScenario::new(util_name!());
let at = &scene.fixtures;
let file1 = "/dev/null"; let file1 = "/dev/null";
let file2 = "target_file"; let file2 = "target_file";
ucmd.arg(file1).arg(file2).succeeds().no_stderr(); let result = scene.ucmd().arg(file1).arg(file2).run();
println!("stderr = {:?}", result.stderr);
println!("stdout = {:?}", result.stdout);
assert!(result.success);
assert!(at.file_exists(file2)); assert!(at.file_exists(file2));
} }