mirror of https://github.com/sharkdp/fd.git
Merge pull request #1183 from Ptipiak/integration-test-files-permission
Adding a simple test for executable files
This commit is contained in:
commit
2aa966cb3c
|
@ -1197,6 +1197,13 @@ fn test_type_executable() {
|
|||
.open(te.test_root().join("executable-file.sh"))
|
||||
.unwrap();
|
||||
|
||||
fs::OpenOptions::new()
|
||||
.create(true)
|
||||
.write(true)
|
||||
.mode(0o645)
|
||||
.open(te.test_root().join("not-user-executable-file.sh"))
|
||||
.unwrap();
|
||||
|
||||
te.assert_output(&["--type", "executable"], "executable-file.sh");
|
||||
|
||||
te.assert_output(
|
||||
|
|
Loading…
Reference in New Issue