diff options
author | brian m. carlson <bk2204@github.com> | 2023-06-27 19:18:56 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-27 21:31:05 +0300 |
commit | d6546af75c3cda2815f2e4d5322dd7a41cc0963b (patch) | |
tree | 45c9ba6f88b5e41afa7e43df4fb924673f4973b6 /t/README | |
parent | 4db16f58c7720257eea9ffb7d4e76809f2c403f0 (diff) |
t: add a function to check executable bit
In line with our other helper functions for paths, let's add a function
to check whether a path is executable, and if not, print a suitable
error message. Document this function, and note that it must only be
used under the POSIXPERM prerequisite, since it doesn't otherwise work
on Windows.
Signed-off-by: brian m. carlson <bk2204@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/README')
-rw-r--r-- | t/README | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1098,6 +1098,12 @@ see test-lib-functions.sh for the full list and their options. the symbolic link in the file system and a part that does; then only the latter part need be protected by a SYMLINKS prerequisite (see below). + - test_path_is_executable + + This tests whether a file is executable and prints an error message + if not. This must be used only under the POSIXPERM prerequisite + (see below). + - test_oid_init This function loads facts and useful object IDs related to the hash |