mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
Fix formatting and unused variable checks
This commit is contained in:
parent
680e9081fe
commit
71c889116e
1 changed files with 5 additions and 2 deletions
|
@ -26,7 +26,6 @@ use std::thread::sleep;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
static TEST_EXISTING_FILE: &str = "existing_file.txt";
|
static TEST_EXISTING_FILE: &str = "existing_file.txt";
|
||||||
static TEST_NONEXISTENT_FILE: &str = "nonexistent_file.txt";
|
|
||||||
static TEST_HELLO_WORLD_SOURCE: &str = "hello_world.txt";
|
static TEST_HELLO_WORLD_SOURCE: &str = "hello_world.txt";
|
||||||
static TEST_HELLO_WORLD_SOURCE_SYMLINK: &str = "hello_world.txt.link";
|
static TEST_HELLO_WORLD_SOURCE_SYMLINK: &str = "hello_world.txt.link";
|
||||||
static TEST_HELLO_WORLD_DEST: &str = "copy_of_hello_world.txt";
|
static TEST_HELLO_WORLD_DEST: &str = "copy_of_hello_world.txt";
|
||||||
|
@ -44,6 +43,8 @@ static TEST_MOUNT_COPY_FROM_FOLDER: &str = "dir_with_mount";
|
||||||
static TEST_MOUNT_MOUNTPOINT: &str = "mount";
|
static TEST_MOUNT_MOUNTPOINT: &str = "mount";
|
||||||
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
|
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
|
||||||
static TEST_MOUNT_OTHER_FILESYSTEM_FILE: &str = "mount/DO_NOT_copy_me.txt";
|
static TEST_MOUNT_OTHER_FILESYSTEM_FILE: &str = "mount/DO_NOT_copy_me.txt";
|
||||||
|
#[cfg(unix)]
|
||||||
|
static TEST_NONEXISTENT_FILE: &str = "nonexistent_file.txt";
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_cp_cp() {
|
fn test_cp_cp() {
|
||||||
|
@ -1439,5 +1440,7 @@ fn test_cp_archive_on_nonexistent_file() {
|
||||||
.arg(TEST_NONEXISTENT_FILE)
|
.arg(TEST_NONEXISTENT_FILE)
|
||||||
.arg(TEST_EXISTING_FILE)
|
.arg(TEST_EXISTING_FILE)
|
||||||
.fails()
|
.fails()
|
||||||
.stderr_only("cp: cannot stat 'nonexistent_file.txt': No such file or directory (os error 2)");
|
.stderr_only(
|
||||||
|
"cp: cannot stat 'nonexistent_file.txt': No such file or directory (os error 2)",
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue