Skip to content
Myr

Add tests for `--same-file-system`

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 8796de5 · Browse files · 1 file+17 added−0 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+17 added−0 removed

  • tests:+17 added−0 removed

1 file+17 added−0 removed

modified:tests/tests.rs+17 added
553 unmodified lines
554 symlink/C.Foo2",555 );556}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#[test]562#[cfg(unix)]563fn test_file_system_boundaries() {564 // Can't simulate file system boundaries565 let te = TestEnv::new(&[], &[]);566567 // /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$", "/"],571 "",572 );573}574575/// Null separator (--print0)576#[test]577fn test_print0() {578 let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);
841 unmodified lines