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

Minor fixes in the tests

This commit is contained in:
Sylvestre Ledru 2020-12-13 11:30:49 +01:00
parent 94571ecf8f
commit cd97adb39d
2 changed files with 6 additions and 10 deletions

View file

@ -42,8 +42,7 @@ fn test_cp_cp() {
.run();
// Check that the exit code represents a successful copy.
let exit_success = result.success;
assert!(exit_success);
assert!(result.success);
// Check the content of the destination file that was copied.
assert_eq!(at.read(TEST_HELLO_WORLD_DEST), "Hello, World!\n");
@ -386,8 +385,7 @@ fn test_cp_deref() {
.run();
// Check that the exit code represents a successful copy.
let exit_success = result.success;
assert!(exit_success);
assert!(result.success);
let path_to_new_symlink = at
.subdir
.join(TEST_COPY_TO_FOLDER)
@ -430,8 +428,7 @@ fn test_cp_no_deref() {
.run();
// Check that the exit code represents a successful copy.
let exit_success = result.success;
assert!(exit_success);
assert!(result.success);
let path_to_new_symlink = at
.subdir
.join(TEST_COPY_TO_FOLDER)
@ -484,8 +481,7 @@ fn test_cp_deref_folder_to_folder() {
println!("cp output {}", result.stdout);
// Check that the exit code represents a successful copy.
let exit_success = result.success;
assert!(exit_success);
assert!(result.success);
#[cfg(not(windows))]
{
@ -589,8 +585,7 @@ fn test_cp_no_deref_folder_to_folder() {
println!("cp output {}", result.stdout);
// Check that the exit code represents a successful copy.
let exit_success = result.success;
assert!(exit_success);
assert!(result.success);
#[cfg(not(windows))]
{