aboutsummaryrefslogtreecommitdiff
path: root/tests/test-prog-shell--make-script-executable.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-14 03:43:46 -0500
committerCraig Jennings <c@cjennings.net>2026-05-14 03:43:46 -0500
commitf6cfaee02412944e281c7ec4c6b20512b3e45708 (patch)
treeedb0710fe73a7314d68969bf07b6d42c2c33f870 /tests/test-prog-shell--make-script-executable.el
parente546f00daac8e716c5a747d7013c908c0e9ef526 (diff)
downloaddotemacs-f6cfaee02412944e281c7ec4c6b20512b3e45708.tar.gz
dotemacs-f6cfaee02412944e281c7ec4c6b20512b3e45708.zip
test(external-open): cover xdg-open, open-this-file-with, find-file-auto
Sibling tests in `test-external-open-lib-*.el` covered the pure helpers (`cj/external-open-command`, `cj/external-open-launcher-p`). This batch covers the user-facing wrappers: - `cj/xdg-open`: posix path triggers `call-process` with the open program; errors when no file is associated; errors when no command resolves on the host. - `cj/open-this-file-with`: errors outside a file-visiting buffer; posix path spawns a detached process via `call-process-shell-command` with `nohup ... >/dev/null 2>&1 &`. - `cj/find-file-auto`: routes a `.mp4` (in `default-open-extensions`) to `cj/xdg-open`, passes `.txt` through to the original `find-file`, and falls through cleanly for a nil filename argument. Host predicates, call-process, and the underlying `cj/xdg-open` are stubbed throughout.
Diffstat (limited to 'tests/test-prog-shell--make-script-executable.el')
0 files changed, 0 insertions, 0 deletions