1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 03:26:18 +00:00

cp: adapt warning if source is used more than once

This commit is contained in:
Daniel Hofstetter 2023-12-29 10:24:08 +01:00
parent 91080b152f
commit 7025619325
2 changed files with 4 additions and 2 deletions

View file

@ -111,7 +111,9 @@ fn test_cp_duplicate_files() {
.arg(TEST_HELLO_WORLD_SOURCE)
.arg(TEST_COPY_TO_FOLDER)
.succeeds()
.stderr_contains("specified more than once");
.stderr_contains(format!(
"source file '{TEST_HELLO_WORLD_SOURCE}' specified more than once"
));
assert_eq!(at.read(TEST_COPY_TO_FOLDER_FILE), "Hello, World!\n");
}