Skip to content

Commit

Permalink
Adding a simple test for executable files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptipiak committed Nov 24, 2022
1 parent c9d3968 commit f4304aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(0o005)
.open(te.test_root().join("not-user-executable-file.sh"))
.unwrap();

te.assert_output(&["--type", "executable"], "executable-file.sh");

te.assert_output(
Expand Down

0 comments on commit f4304aa

Please sign in to comment.