diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-14 03:43:46 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-14 03:43:46 -0500 |
| commit | f6cfaee02412944e281c7ec4c6b20512b3e45708 (patch) | |
| tree | edb0710fe73a7314d68969bf07b6d42c2c33f870 /tests/test-test-runner-state.el | |
| parent | e546f00daac8e716c5a747d7013c908c0e9ef526 (diff) | |
| download | dotemacs-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-test-runner-state.el')
0 files changed, 0 insertions, 0 deletions
