summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThayne McCombs <astrothayne@gmail.com>2022-11-28 22:14:08 -0700
committerGitHub <noreply@github.com>2022-11-28 22:14:08 -0700
commit2aa966cb3cf7799d01391dc6d4f41124d213eae3 (patch)
tree60d5af1b2f38cb3dc0550603ad9618f292346fa0
parentc9d39684758d0d898082370d5c5fe7e8aef3a385 (diff)
parentcd5fad3cf340c0288792f0d0a216a55f84d89898 (diff)
Merge pull request #1183 from Ptipiak/integration-test-files-permission
Adding a simple test for executable files
-rw-r--r--tests/tests.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index e884c50..3de4559 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -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(