mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
mv: adjust the tests - duplicate code + android
According to: https://stackoverflow.com/questions/44913985/creating-hardlinks-and-symlinks-in-android hardlink aren't expected to work on android + fat
This commit is contained in:
parent
594f81a88a
commit
48b8cfa595
1 changed files with 2 additions and 3 deletions
|
@ -401,7 +401,7 @@ fn test_mv_same_file() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
#[cfg(all(unix, not(target_os = "android")))]
|
||||
fn test_mv_same_hardlink() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
let file_a = "test_mv_same_file_a";
|
||||
|
@ -418,7 +418,7 @@ fn test_mv_same_hardlink() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
#[cfg(all(unix, not(target_os = "android")))]
|
||||
fn test_mv_same_hardlink_backup_simple() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
let file_a = "test_mv_same_file_a";
|
||||
|
@ -427,7 +427,6 @@ fn test_mv_same_hardlink_backup_simple() {
|
|||
|
||||
at.hard_link(file_a, file_b);
|
||||
|
||||
at.touch(file_a);
|
||||
ucmd.arg(file_a)
|
||||
.arg(file_b)
|
||||
.arg("--backup=simple")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue