mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 09:48:03 +00:00
Fix Windows test(?): inode request shouldn't error on Windows, b/c there are no inodes
This commit is contained in:
parent
01585a57f6
commit
13d6d74fa3
1 changed files with 10 additions and 1 deletions
|
@ -2367,13 +2367,22 @@ fn test_ls_dangling_symlinks() {
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_contains("dangle");
|
.stdout_contains("dangle");
|
||||||
|
|
||||||
|
#[cfg(not(windows))]
|
||||||
scene
|
scene
|
||||||
.ucmd()
|
.ucmd()
|
||||||
.arg("-Li")
|
.arg("-Li")
|
||||||
.arg("temp_dir")
|
.arg("temp_dir")
|
||||||
.fails()
|
.fails()
|
||||||
.stderr_contains("cannot access")
|
.stderr_contains("cannot access")
|
||||||
.stdout_contains(if cfg!(windows) { "dangle" } else { "? dangle" });
|
.stdout_contains("? dangle");
|
||||||
|
|
||||||
|
#[cfg(windows)]
|
||||||
|
scene
|
||||||
|
.ucmd()
|
||||||
|
.arg("-Li")
|
||||||
|
.arg("temp_dir")
|
||||||
|
.succeeds()
|
||||||
|
.stdout_contains("dangle");
|
||||||
|
|
||||||
scene
|
scene
|
||||||
.ucmd()
|
.ucmd()
|
||||||
|
|
Loading…
Reference in a new issue