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:
parent
94571ecf8f
commit
cd97adb39d
2 changed files with 6 additions and 10 deletions
|
@ -384,6 +384,7 @@ fn test_root_preserve() {
|
|||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[test]
|
||||
fn test_big_p() {
|
||||
if get_effective_uid() != 0 {
|
||||
new_ucmd!()
|
||||
|
|
|
@ -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))]
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue