Skip to content
Myr

Adjust tests to not time out on Travis OSX

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Simon Engmann · committed by David Peter · parent e5ba75f · Browse files · 1 file+13 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+13 added−2 removed

  • tests:+13 added−2 removed

1 file+13 added−2 removed

modified:tests/tests.rs+13 added-2 removed
556 unmodified lines
557558// File system boundaries (--same-file-system)559// Limited to Unix because, to the best of my knowledge, there is no easy way to test a use case560// file systems mounted into the tree on Windows.561// Not limiting depth causes massive delay under Darwin, see BurntSushi/ripgrep#1429562#[test]563#[cfg(unix)]564fn test_file_system_boundaries() {565 // Can't simulate file system boundaries566 let te = TestEnv::new(&[], &[]);567568 // /dev/null should exist in all sane Unixes568 te.assert_output(&["--full-path", "^/dev/null$", "/"], "/dev/null");569 te.assert_output(570 &["--same-file-system", "--full-path", "^/dev/null$", "/"],570 &["--full-path", "--max-depth", "2", "^/dev/null$", "/"],571 "/dev/null",572 );573 te.assert_output(574 &[575 "--same-file-system",576 "--full-path",577 "--max-depth",578 "2",579 "^/dev/null$",580 "/",581 ],582 "",583 );584}585
845 unmodified lines