diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-22 16:09:49 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-22 16:09:49 -0500 |
| commit | 04246e579ba0295eff8946f9edfd6bcedbcd3355 (patch) | |
| tree | f5a2a2608910b8ba8dc7540bb8eb9f00d516a744 /scripts | |
| parent | dac26da84262d31e11ece12bf51b84164ec8ac06 (diff) | |
| download | dotemacs-04246e579ba0295eff8946f9edfd6bcedbcd3355.tar.gz dotemacs-04246e579ba0295eff8946f9edfd6bcedbcd3355.zip | |
fix(test): make test-name resilient to load-time cwd changes
make test-name loads every test file into one Emacs, then selects by name. test-system-defaults-functions.el requires system-defaults at load, which runs (setq default-directory user-home-dir), an intentional config choice. That leaked the cwd into the shared session, so every relative -l tests/X.el load after it resolved against the wrong directory and aborted the whole run with Error 255.
I made two changes. test-name now passes absolute paths to -l so loads survive any cwd change, and the test contains the leak by let-binding default-directory around the require. The production setq stays as is.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
