Skip to content

Commit ab662e2

Browse files
committed
make test_nonexistent_file pass on windows
1 parent 1d4ea75 commit ab662e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/by-util/test_df.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,5 +869,8 @@ fn test_nonexistent_file() {
869869
"df: does-not-exist: No such file or directory\n"
870870
);
871871

872+
#[cfg(windows)]
873+
assert_eq!(result.stdout_move_str(), "File\n");
874+
#[cfg(not(windows))]
872875
assert_eq!(result.stdout_move_str(), "File\n.\n");
873876
}

0 commit comments

Comments
 (0)