mirror of
https://github.com/sharkdp/fd
synced 2024-10-06 07:49:18 +00:00
Adjust tests to not time out on Travis OSX
This commit is contained in:
parent
e5ba75f3c8
commit
3e0325cc60
|
@ -558,6 +558,7 @@ fn test_follow() {
|
|||
// File system boundaries (--same-file-system)
|
||||
// Limited to Unix because, to the best of my knowledge, there is no easy way to test a use case
|
||||
// file systems mounted into the tree on Windows.
|
||||
// Not limiting depth causes massive delay under Darwin, see BurntSushi/ripgrep#1429
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn test_file_system_boundaries() {
|
||||
|
@ -565,9 +566,19 @@ fn test_file_system_boundaries() {
|
|||
let te = TestEnv::new(&[], &[]);
|
||||
|
||||
// /dev/null should exist in all sane Unixes
|
||||
te.assert_output(&["--full-path", "^/dev/null$", "/"], "/dev/null");
|
||||
te.assert_output(
|
||||
&["--same-file-system", "--full-path", "^/dev/null$", "/"],
|
||||
&["--full-path", "--max-depth", "2", "^/dev/null$", "/"],
|
||||
"/dev/null",
|
||||
);
|
||||
te.assert_output(
|
||||
&[
|
||||
"--same-file-system",
|
||||
"--full-path",
|
||||
"--max-depth",
|
||||
"2",
|
||||
"^/dev/null$",
|
||||
"/",
|
||||
],
|
||||
"",
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue