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()
.stdout_contains("dangle");
#[cfg(not(windows))]
scene
.ucmd()
.arg("-Li")
.arg("temp_dir")
.fails()
.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
.ucmd()