mirror of https://github.com/sharkdp/fd.git
Change full path tests to be more resilient
Use patterns that won't conflict with randomly generated portion of temporary directory Fixes: #1181
This commit is contained in:
parent
d991beb942
commit
0a575763a1
|
@ -263,12 +263,12 @@ fn test_and_plus_full_path() {
|
||||||
let te = TestEnv::new(DEFAULT_DIRS, AND_EXTRA_FILES);
|
let te = TestEnv::new(DEFAULT_DIRS, AND_EXTRA_FILES);
|
||||||
|
|
||||||
te.assert_output(
|
te.assert_output(
|
||||||
&["three", "--full-path", "--and", "foo", "--and", "dir"],
|
&["three", "--full-path", "--and", "_foo", "--and", "/dir"],
|
||||||
"one/two/three/directory_foo/",
|
"one/two/three/directory_foo/",
|
||||||
);
|
);
|
||||||
|
|
||||||
te.assert_output(
|
te.assert_output(
|
||||||
&["three", "--full-path", "--and", "two", "--and", "dir"],
|
&["three", "--full-path", "--and", "/two", "--and", "/dir"],
|
||||||
"one/two/three/directory_foo/",
|
"one/two/three/directory_foo/",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue