diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-29 04:47:44 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-29 04:47:44 -0400 |
| commit | 7779cda6a3d95da9c4b4f7c0c242ddae8fd8b0c4 (patch) | |
| tree | 2e0caf6ad3839f6505cdb03407825f0882d56983 /modules/calendar-sync-source.el | |
| parent | e221664273fe233cfaa1f6e25010e44bcab43a92 (diff) | |
| download | dotemacs-7779cda6a3d95da9c4b4f7c0c242ddae8fd8b0c4.tar.gz dotemacs-7779cda6a3d95da9c4b4f7c0c242ddae8fd8b0c4.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 'modules/calendar-sync-source.el')
0 files changed, 0 insertions, 0 deletions
