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 | a76d69a40a6c8bb48d25cd527580b74453bcf175 (patch) | |
| tree | 8b30b339cef5ffc19e1fe6397b3382c1365bf668 /tests/test-calendar-sync--api-command.el | |
| parent | e1490bce4705cbe161b4d34e84c00e5c6f740beb (diff) | |
| download | dotemacs-a76d69a40a6c8bb48d25cd527580b74453bcf175.tar.gz dotemacs-a76d69a40a6c8bb48d25cd527580b74453bcf175.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-calendar-sync--api-command.el')
0 files changed, 0 insertions, 0 deletions
