aboutsummaryrefslogtreecommitdiff
path: root/tests/test-init-module-headers.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-29 04:47:44 -0400
committerCraig Jennings <c@cjennings.net>2026-06-29 04:47:44 -0400
commit9943eccf86339dee90691266c371d2d0357f3550 (patch)
treebed49bd5c6930ce970e877cb39e421949cd06eb1 /tests/test-init-module-headers.el
parentca3d447bfd849b54f8f9d74568f3dee1e86c391e (diff)
downloaddotemacs-9943eccf86339dee90691266c371d2d0357f3550.tar.gz
dotemacs-9943eccf86339dee90691266c371d2d0357f3550.zip
test: fix restart-emacs no-service mock to survive native-comp
test-system-cmd-restart-emacs-no-service-aborts mocked cj/system-cmd--emacs-service-available-p directly, but cj/system-cmd-restart-emacs reaches that helper through a native-comp intra-file direct call that bypasses the symbol-function redefinition. The mock silently no-opped, the real check ran, and on any machine that has emacs.service it returned non-nil, so restart proceeded and the should-error saw no error. I mock executable-find to nil instead, driving the real helper to nil at a boundary its subr trampoline honors, matching the passing sibling tests. The test now passes whether or not emacs.service is installed.
Diffstat (limited to 'tests/test-init-module-headers.el')
0 files changed, 0 insertions, 0 deletions