Fix Windows test(?): inode request shouldn't error on Windows, b/c there are no inodes

This commit is contained in:
electricboogie 2022-01-07 09:24:32 -06:00
parent 01585a57f6
commit 13d6d74fa3

View file

@ -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()